phonesrv_plat/sat_client_api/tsrc/inc/satclientapitest.h
changeset 0 ff3b6d0fd310
child 11 ba42c4bd84dd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phonesrv_plat/sat_client_api/tsrc/inc/satclientapitest.h	Tue Feb 02 01:11:09 2010 +0200
@@ -0,0 +1,115 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "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:  Test class for SAT Client API / RSatSession.h
+*
+*/
+
+#ifndef CSATCLIENTAPITEST_H
+#define CSATCLIENTAPITEST_H
+
+#include <stiflogger.h>
+#include <testscripterinternal.h>
+#include <stiftestmodule.h>
+// API under testing:
+#include <RSatSession.h>
+
+// Logging path
+_LIT( KSatClientAPILogPath, "\\logs\\testframework\\SATClientAPITest\\" ); 
+// Log file
+_LIT( KSatClientAPILogFile, "SATClientAPITest.txt" ); 
+
+
+/**
+*  Test class for SAT Client API / RSatSession.h
+*
+*  @lib satclientapitest.dll
+*  @since S60 5.0
+*/
+class CSATClientAPI : public CScriptBase
+    {
+    public:  
+
+        /**
+        * Two-phased constructor.
+        */
+        static CSATClientAPI* NewL( CTestModuleIf& aTestModuleIf );
+
+        /**
+        * Destructor.
+        */
+        virtual ~CSATClientAPI();
+        
+         /**
+         * From CScriptBase Runs a script line.
+         *          
+         * @since S60 5.0
+         * @param aItem Script line containing method name and parameters
+         * @return Symbian OS error code
+         */
+        TInt RunMethodL( CStifItemParser& aItem ); 
+
+    private:    // Methods
+
+        /**
+        * C++ default constructor.
+        */
+        CSATClientAPI( CTestModuleIf& aTestModuleIf );
+
+        /**
+        * By default Symbian 2nd phase constructor is private.
+        */
+        void ConstructL();
+        
+        /**
+        * Calls ConnectL method from RSatSession class
+        *
+        * @since S60 5.0
+        * @param aItem, Script line containing method name and parameters
+        * @return TInt, KErrNone if OK, other values if a failure happens
+        */
+        TInt Connect( CStifItemParser& aItem );
+        
+        /**
+        * Calls Close method from RSatSession class
+        *
+        * @since S60 5.0
+        * @param aItem, Script line containing method name and parameters
+        * @return TInt, KErrNone if OK, other values if a failure happens
+        */
+        TInt Close( CStifItemParser& aItem );
+        
+        /**
+        * Calls Version method from RSatSession class
+        *
+        * @since S60 5.0
+        * @param aItem, Script line containing method name and parameters
+        * @return TInt, KErrNone if OK, other values if a failure happens
+        */
+        TInt Version(CStifItemParser& aItem );
+
+    private:    // Data
+   
+        /**
+        * Pointer to logger
+        * Own.
+        */
+        CStifLogger * iLog;
+        
+        /**
+        * Object of RSatSession
+        */
+        RSatSession iSatSession;
+     };
+
+#endif      // CSATCLIENTAPITEST_H