From ba5d6f0e489b627cb24f0f48e56ed11c0f7399c5 Mon Sep 17 00:00:00 2001 From: Carsten Tinggaard Date: Wed, 17 Dec 2008 14:26:05 +0000 Subject: [PATCH] Module for functionality between UI, song files and songs bzr-revno: 244 --- openlp/plugins/songs/lib/songinterface.py | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 openlp/plugins/songs/lib/songinterface.py diff --git a/openlp/plugins/songs/lib/songinterface.py b/openlp/plugins/songs/lib/songinterface.py new file mode 100644 index 000000000..fe83c354b --- /dev/null +++ b/openlp/plugins/songs/lib/songinterface.py @@ -0,0 +1,35 @@ +# -*- coding:iso-8859-1 -*- +# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4 +""" +OpenLP - Open Source Lyrics Projection +Copyright (c) 2008 Raoul Snyman +Portions copyright (c) 2008 Martin Thompson, Tim Bentley, Carsten Tinggaard + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free Software +Foundation; version 2 of the License. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with +this program; if not, write to the Free Software Foundation, Inc., 59 Temple +Place, Suite 330, Boston, MA 02111-1307 USA +""" + +import sys +import os +from songxml import * +from songfile import SongFile + +class SongInterface(object): + """Handle the interface functionality between UI, SongFile and Songs""" + + def __init__(self, fileUrl): + """Initialize with needed paths, files and forms + + fileUrl -- full path and name to the song file + """ + self.songfile = SongFile(fileUrl) +