abstractnodecontent.h

00001 /*
00002  * Silence
00003  *
00004  * Copyright (C) 2009 Manuel Unglaub
00005  *
00006  * This file is part of Silence.
00007  *
00008  * Silence is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, version GPLv2 only of the License.
00011  *
00012  * Silence is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016 
00017  * You should have received a copy of the GNU General Public License
00018  * along with Silence.  If not, see <http://www.gnu.org/licenses/>.
00019  */
00020 
00021 #ifndef ABSTRACTNODECONTENT_H
00022 #define ABSTRACTNODECONTENT_H
00023 
00024 #include <QDomDocument>
00025 #include <QHash>
00026 #include <QIcon>
00027 #include <QWidget>
00028 #include "src/gui/view/abstractcontentview.h"
00029 
00030 
00038 class AbstractNodeContent : public QObject
00039 {
00040     public:
00045         virtual AbstractContentView* getWidget() = 0;
00046 
00051         virtual QHash<QString, QString>* getMetaInfos() = 0;
00052 
00058         virtual void addMetaInfo(QString key, QString value) = 0;
00059 
00064         virtual QString getMimeType() = 0;
00065 
00071         virtual bool contains(const QString& value) = 0;
00072 
00079         virtual QDomElement getXmlData(QDomDocument &doc) = 0;
00080 
00086         virtual void setXmlData(QDomElement &xmlNode) = 0;
00087 
00093         virtual QPixmap getPixmap() = 0;
00094 
00100         virtual QIcon getIcon() = 0;
00101 
00107         virtual QString toString() = 0;
00108 };
00109 
00110 #endif // ABSTRACTNODECONTENT_H
00111 
00112 
Generated on Fri May 14 19:12:50 2010 for Silence by  doxygen 1.6.3