vdr-plugin-skindesigner/skindesclient-0.0.1/libskindesigner/services.h

52 lines
1.5 KiB
C
Raw Normal View History

2014-11-15 09:47:22 +01:00
#ifndef __SKINDESIGNERSERVICES_H
#define __SKINDESIGNERSERVICES_H
using namespace std;
#include <string>
#include <vector>
2014-11-15 09:47:22 +01:00
#include <map>
enum eMenuType {
mtList,
mtText
};
class cSDDisplayMenu : public cSkinDisplayMenu {
public:
virtual void SetTitle(const char *Title);
2014-11-15 09:47:22 +01:00
virtual void SetPluginMenu(string name, int menu, int type, bool init);
virtual bool SetItemPlugin(map<string,string> *stringTokens, map<string,int> *intTokens, map<string,vector<map<string,string> > > *loopTokens, int Index, bool Current, bool Selectable);
virtual bool SetPluginText(map<string,string> *stringTokens, map<string,int> *intTokens, map<string,vector<map<string,string> > > *loopTokens);
};
/*********************************************************************
* Data Structures for Service Calls
*********************************************************************/
// Data structure for service "RegisterPlugin"
class RegisterPlugin {
public:
2014-11-25 14:33:59 +01:00
RegisterPlugin(void) {
name = "";
};
void SetMenu(int key, string templateName) {
menus.insert(pair<int, string>(key, templateName));
}
2014-11-15 09:47:22 +01:00
// in
2014-11-25 14:33:59 +01:00
string name; //name of plugin
map< int, string > menus; //menus as key -> templatename hashmap
2014-11-15 09:47:22 +01:00
//out
};
// Data structure for service "GetDisplayMenu"
class GetDisplayMenu {
public:
2014-11-25 14:33:59 +01:00
GetDisplayMenu(void) {
displayMenu = NULL;
};
2014-11-15 09:47:22 +01:00
// in
2014-11-25 14:33:59 +01:00
//out
cSDDisplayMenu *displayMenu;
2014-11-15 09:47:22 +01:00
};
#endif //__SKINDESIGNERSERVICES_H