videoutils_plat/videoconnutility_api/tsrc/VCXConnUtilTestExe/inc/VCXConnUtilTestExeTester.h
branchRCL_3
changeset 23 13a33d82ad98
parent 0 822a42b6c3f1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/videoutils_plat/videoconnutility_api/tsrc/VCXConnUtilTestExe/inc/VCXConnUtilTestExeTester.h	Wed Sep 01 12:20:37 2010 +0100
@@ -0,0 +1,100 @@
+/*
+* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+
+#ifndef VCXCONNUTILTESTEXETESTER_H_
+#define VCXCONNUTILTESTEXETESTER_H_
+
+
+//  INCLUDES
+#include <e32base.h>
+#include <e32std.h>
+#include <e32msgqueue.h>
+#include "VCXConnUtilTestPSObserver.h"
+
+// CONSTANTS
+
+// MACROS
+
+// DATA TYPES
+
+// FUNCTION PROTOTYPES
+
+// FORWARD DECLARATIONS
+
+// CLASS DECLARATION
+class CVCXConnUtilTestSubscriber;
+class CVCXConnUtilTester;
+
+/**
+* Observer PS key and when it changes to 1 sends msg to queue to stop the tester exe.
+*  @since
+*/
+class CVCXConnUtilTestExeTester : public CBase, public MVCXConnUtilTestPSObserver
+    {
+    public:  // Constructors and destructor
+        /**
+        * Two-phased constructor.
+        */
+        static CVCXConnUtilTestExeTester * NewL( TUint aProcessId );
+
+        /**
+        * Destructor.
+        */
+        virtual ~CVCXConnUtilTestExeTester();
+
+    public: // New functions
+
+        TBool Running() { return iRunning; };
+        
+    protected: // From base classes
+
+        void ValueChangedL( const TUid& aUid, const TUint32& aKey, const TInt& aValue );
+        
+        void ValueChangedL( const TUid& aUid, const TUint32& aKey, const TDesC& aValue );
+        
+    private:
+
+        /**
+        * C++ default constructor.
+        */
+        CVCXConnUtilTestExeTester();
+
+        /**
+        * By default Symbian 2nd phase constructor is private.
+        */
+        void ConstructL( TUint aProcessId );
+
+    private:    // Data
+        TBuf<256> iName;
+        
+        CVCXConnUtilTester* iTester;
+        
+        CVCXConnUtilTestSubscriber* iGlobalShutdownSubcriber;
+        
+        CVCXConnUtilTestSubscriber* iCmdSubcriber;
+        
+        TBool iRunning;
+        
+        TInt iPSKeyBase;
+        
+        TInt iAckCount;
+    };
+
+#endif // VCXCONNUTILTESTEXETESTER_H_
+
+// End of File