#ifndef __T_SERVER_H__ #define __T_SERVER_H__ #include #include #include #include "SharedQueueCliSrv.h" #include _LIT(KSharedQueueSrvName, "ConnectionManager.exe"); // obfuscated name _LIT(KSharedQueueSrvImg, "SharedQueueSrv_20023634"); // EXE name const TUint KServMajorVersionNumber=1; const TUint KServMinorVersionNumber=0; const TUint KServBuildVersionNumber=0; enum TQueueMessages { ELockTop, EIsEmpty, EEnqueue, EDequeue, ETop, ETopParam, EDoEmpty // added j }; class CSharedQueueSrv : public CServer2 { public: static CSharedQueueSrv* NewLC(); virtual ~CSharedQueueSrv(); static TInt EntryPoint(TAny* aStarted); void AddSession(); void DropSession(); public: TBool IsEmpty(); TBool LockTop(); void UnlockTop(); TCmdStruct TopL(); HBufC8* TopParamL(); TCmdStruct DequeueL(); void EnqueueL(TCmdStruct aCmd, const TDesC8& params); void SetAccomplishedOnTopL(); void DoEmptyL(); // added j private: CSharedQueueSrv(TInt aPriority); void ConstructL(); CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const; static void ThreadMainL(); public: TInt iSessionCount; private: RArray iArray; RPointerArray iParams; TBool iTopIsLocked; __FLOG_DECLARATION_MEMBER }; #endif .