javacommons/comms/ipclib/clientserver/src.s60/creceiver.h
branchRCL_3
changeset 26 2455ef1f5bbc
parent 25 ae942d28ec0e
child 27 d5e927d5853b
equal deleted inserted replaced
25:ae942d28ec0e 26:2455ef1f5bbc
    29 class IpcListener;
    29 class IpcListener;
    30 class IpcClient;
    30 class IpcClient;
    31 
    31 
    32 NONSHARABLE_CLASS(CReceiver): public CActive
    32 NONSHARABLE_CLASS(CReceiver): public CActive
    33 {
    33 {
       
    34 public:
    34     CReceiver(IpcClient& aParent, IpcListener& aListener, RComms& aSession);
    35     CReceiver(IpcClient& aParent, IpcListener& aListener, RComms& aSession);
    35 public:
       
    36     static CReceiver* NewLC(IpcClient& aParent, IpcListener& aListener, RComms& aSession);
       
    37 
       
    38     ~CReceiver();
    36     ~CReceiver();
    39     void Receive();
    37     void Receive();
    40 
    38 
    41 private:
    39 private:
    42     void ConstructL();
       
    43 
       
    44     virtual void RunL();
    40     virtual void RunL();
    45     virtual void DoCancel();
    41     virtual void DoCancel();
    46     virtual TInt RunError(TInt aError);
    42     virtual TInt RunError(TInt aError);
    47 
    43 
    48     IpcClient&      mParent;
    44     IpcClient&      mParent;