diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/cardgamesend_8cpp-source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/cardgamesend_8cpp-source.html Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,66 @@ + + +TB10.1 Example Applications: examples/Bluetooth/BTExample1/src/cardgamesend.cpp Source File + + + + +

examples/Bluetooth/BTExample1/src/cardgamesend.cpp

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 #include <e32base.h>
+00017 #include "cardgamesend.h"
+00018 #include "cardgamebase.h"
+00022 CCardGameSend::CCardGameSend(CCardGameBase& aParent, RSocket& aSocket)
+00023         : CActive(EPriorityNormal),
+00024           iParent(aParent), iSocket(aSocket)
+00025         {
+00026         CActiveScheduler::Add(this);
+00027         }
+00028 
+00032 CCardGameSend* CCardGameSend::NewL(CCardGameBase& aParent, RSocket& aSocket)
+00033     {
+00034     CCardGameSend* self = new (ELeave) CCardGameSend(aParent, aSocket);
+00035     return self;
+00036     }
+00037 
+00038 
+00042 CCardGameSend::~CCardGameSend()
+00043         {
+00044         Cancel();// Cancel Active Object
+00045         }
+00046 
+00047 
+00048 void CCardGameSend::RunL()
+00049         {
+00050         iParent.SendComplete(iStatus.Int());
+00051         }
+00052 
+00053 
+00054 void CCardGameSend::SendTo(TDesC8& aDes, TInetAddr aAddr)
+00055         {
+00056         iSocket.SendTo(aDes, aAddr, 0, iStatus);
+00057         SetActive();
+00058         }
+00059         
+00060 void CCardGameSend::DoCancel()
+00061      {
+00062      iSocket.CancelSend();
+00063      }
+

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