cLocalApplication::cLocalApplication(char *name, char *basePath, char *initialClass, ApplicationInfo::cTransportProtocol *tp) { SetBaseDir(basePath); SetInitialClass(initialClass); SetTransportProtocol(tp);  SetAid(nextId--); SetOid(-1); SetControlCode(Present); SetApplicationType(LocalDVBJApplication); SetServiceBound(false); AddName("deu", name); }
class cLocalApplication : public ApplicationInfo::cApplication { public: cLocalApplication(char *name, char *basePath, char *initialClass, ApplicationInfo::cTransportProtocol *tp); protected: static int nextId; };
cLocalApplication::cLocalApplication(char *name, char *basePath, char *initialClass, ApplicationInfo::cTransportProtocol *tp) {   SetBaseDir(basePath);   SetInitialClass(initialClass);   SetTransportProtocol(tp);   //give local apps unique app ids, even if illegal ones   SetAid(nextId--);   SetOid(-1);   SetControlCode(Present);   SetApplicationType(LocalDVBJApplication);   SetServiceBound(false);   AddName("deu", name); //TODO: change "deu" to real VDR language}