PiglerAPI
PiglerTapServer.h
1
6#ifndef PIGLERTAPSERVER
7#define PIGLERTAPSERVER
8#include <e32base.h>
9#include "PiglerProtocol.h"
10
12
13NONSHARABLE_CLASS(CPiglerTapServer) : public CServer2
14{
15private:
16 IPiglerTapHandler *handler;
17 CSession2* NewSessionL(const TVersion& version, const RMessage2& message) const;
18
19public:
20 CPiglerTapServer();
21 void SetHandler(IPiglerTapHandler *handler);
22};
23
24NONSHARABLE_CLASS(CPiglerTapSession): public CSession2
25{
26private:
27 IPiglerTapHandler *handler;
28 TInt ReadMessage(const RMessage2& message);
29
30public:
31 CPiglerTapSession(IPiglerTapHandler *handler);
32 void ServiceL(const RMessage2& message);
33 void ServiceError(const RMessage2& message, TInt error);
34};
35#endif
Definition PiglerAPI.h:19