Initial commit
[raptor.git] / lib / raptordatasource.h
blobb56317a97d51444604f4ed2b3f8ca7cc1116c6db
2 /**
3 This class will provide a compatible interface to
4 datasource but hey this is the menu, we need to simplify
5 DataSource is atomic and indivisible , This defines the unit
6 **/
8 #ifndef RAPTOR_DATA_SOURCE_H
9 #define RAPTOR_DATA_SOURCE_H
11 #include <QObject>
12 #include <QVector>
14 class RaptorDataSource : public QObject
17 Q_OBJECT
19 public:
20 // typedef QMap <QString,RaptorDataSource* > DataSourceList;
21 //RaptorDataSource();
22 virtual ~RaptorDataSource(){}
26 virtual QString name() = 0 ;
31 virtual void setName(const QString & name) = 0 ;
34 should we store the whole path or just the name ?...hmmm
37 virtual QString iconPath() = 0 ;
42 virtual void setIconPath(const QString & path) = 0;
47 virtual QString iconName() = 0 ;
52 virtual void setIconName(const QString & name) = 0 ;
56 virtual void exec() = 0;
60 virtual bool lookup(const QString & key) = 0;
64 #endif