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

examples/Bluetooth/BTExample1/inc/console.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 CONSOLE_H
+00017 #define CONSOLE_H
+00018 
+00019 #define __NO_CONTROL_DURING_START__
+00020 
+00021 #include <e32base.h>
+00022 
+00023 class CPanConnections;
+00024 class CConsoleBase;
+00025 class CScabbyQueenDealer;
+00026 class CScabbyQueenPlayer;
+00027 
+00033 class CActiveConsole : public CActive
+00034         {
+00035 public:
+00036         static CActiveConsole* NewLC(CConsoleBase* aConsole);
+00037         ~CActiveConsole();
+00038         void IapStartedCallBack();
+00039         void DoCancel();
+00040         void RunL();
+00041         void RequestCharacterL();
+00042         void ProcessKeyPressL(TChar aChar);
+00043         void MenuLine();
+00044         TUint32 GetIpAddress();
+00045         TInt StartListening();
+00046         CConsoleBase* Console();
+00047         TInt GetCardNumber();
+00048         TInt CheckBtConnectionL();
+00049         
+00050 private:
+00051         void ConstructL(CConsoleBase* aConsole);
+00052         CActiveConsole(CConsoleBase* aConsole);
+00053         void PlayerProcessL();
+00054 
+00055 private:
+00056         // Data members defined by this class
+00057         TInt iCardNum;
+00058         CConsoleBase*    iConsole;                                      // A console for reading from
+00059         CPanConnections* iPanConnection;
+00060         CScabbyQueenDealer* iDealer;
+00061         CScabbyQueenPlayer* iPlayer;
+00062         enum TMenuMode
+00063                 {// Application modes, used to determine which menu to display
+00064                 EPan,
+00065                 EScabbyQueen
+00066                 };
+00067         enum TPlayerRole
+00068                 {// To display menu accordingly
+00069                 EDealer,
+00070                 EPlayer
+00071                 };
+00072         enum
+00073                 {
+00074                 EListeningWithoutIAP,
+00075                 EIAPLoadingAONotActive,
+00076                 };
+00077         TMenuMode iMode;
+00078         TPlayerRole iPlayerRole;        
+00079 
+00080         };
+00081         
+00082 
+00083 #endif // CONSOLE_H
+

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