examples/Bluetooth/BTExample1/inc/cardgamedealer.h

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 CARDGAMEDEALER_H
00017 #define CARDGAMEDEALER_H
00018 
00019 #include "cardgamebase.h"
00020 
00029 class CCardGameDealer : public CCardGameBase
00030         {
00031 public:
00032         ~CCardGameDealer();
00033         
00034 protected:
00035         void ConstructL(RArray<TInetAddr>& aRemoteNames, RSocket& aSocket);
00036                 
00037 public:
00038         void ShuffleCards(TDesC8& aCards);
00039         void DealCardsL(TDesC8& aCards);
00040         
00041 protected:
00042         // pure virtuals to be implemented by derived classes
00043         // these are from CCardGameBase but we dont want them
00044         virtual void SendComplete(TInt aError) = 0;
00045         virtual void RecvComplete(TInetAddr aRecvAddr,TInt aError) = 0;
00046         virtual void TimerComplete() = 0;
00047         
00048 public:
00049         RArray<TInetAddr> iRemoteNames;
00050         };
00051         
00052 #endif // CARDGAMEDEALER_H

Generated on Thu Jan 21 10:32:57 2010 for TB10.1 Example Applications by  doxygen 1.5.3