Documents > BPS V2 C++ API
bpsmdeapplication.h
Go to the documentation of this file.
00001 
00004 #ifndef BPSMDEAPPLICATION_H
00005 #define BPSMDEAPPLICATION_H
00006 
00007 #include "bpscore_global.h"
00008 #include <QObject>
00009 #include <QMap>
00010 #include <QStringList>
00011 
00012 class BpsDatastore;
00013 class BpsLicenseToken;
00014 class BpsMdeRequest;
00015 class BpsMdeSession;
00016 
00020 class BPSCORE_EXPORT BpsMdeApplication : public QObject
00021 {
00022     Q_OBJECT
00023 
00024 public:
00029     BpsMdeApplication(QObject *aParent = 0);
00030 
00034     virtual ~BpsMdeApplication();
00035 
00044     virtual BpsLicenseToken* createLicenseToken(BpsDatastore* aDatastore, QObject* aParent = 0);
00045 
00052     virtual bool isPermittedFor(BpsMdeSession* aSession);
00053 
00059     virtual QStringList paths() const = 0;
00060 
00072     virtual int menuIndex() const;
00073 
00078     virtual QString text() const;
00079 
00084     virtual QString icon() const;
00085 
00094     virtual bool handleRequest(BpsMdeRequest* aRequest, BpsMdeSession* aSession) = 0;
00095 
00096 signals:
00097 
00102     void logError(const QString& aText);
00103 
00108     void logWarning(const QString& aText);
00109 
00114     void logInformation(const QString& aText);
00115 
00120     void logSuccess(const QString& aText);
00121 };
00122 
00123 #endif // BPSMDEAPPLICATION_H