diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/cardgamebase_8h-source.html --- a/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/cardgamebase_8h-source.html Tue Mar 30 11:56:28 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +0,0 @@ - -
-00001 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). -00002 // All rights reserved. -00003 // This component and the accompanying materials are made available -00004 // under the terms of "Eclipse Public License v1.0" -00005 // which accompanies this distribution, and is available -00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html". -00007 // -00008 // Initial Contributors: -00009 // Nokia Corporation - initial contribution. -00010 // -00011 // Contributors: -00012 // -00013 // Description: -00014 // -00015 -00016 #ifndef CARDGAMEBASE_H -00017 #define CARDGAMEBASE_H -00018 -00019 #include <e32base.h> -00020 #include "cardgamesend.h" -00021 #include "cardgamerecv.h" -00022 #include "cardgametimer.h" -00023 -00030 class CCardGameBase : public CBase -00031 { -00032 public: -00033 ~CCardGameBase(); -00034 void BaseSendTo(TDesC8& aDes, TInetAddr aAddr); -00035 void BaseRecvFrom(TDes8& aDes); -00036 void BaseCancelSendTo(); -00037 void BaseCancelRecvFrom(); -00038 void BaseCancelAll(); -00039 void StartTimer(TInt aDuration); -00040 void StopTimer(); -00041 // pure virtuals to be implemented by derived classes, -00042 // The 'Operations' classes call these -00043 virtual void SendComplete(TInt aError) = 0; -00044 virtual void RecvComplete(TInetAddr aRecvAddr,TInt aError) = 0; -00045 virtual void TimerComplete() = 0; -00046 -00047 protected: -00048 void ConstructL(RSocket& aSocket); -00049 -00050 private: -00051 // Operations classes -00052 CCardGameSend* iGameSender; -00053 CCardGameRecv* iGameReceiver; -00054 CCardGameTimer* iGameTimer; -00055 public: -00056 RSocket iSocket; // Socket passed from derived class -00057 }; -00058 -00059 #endif // CARDGAMEBASE_H -