landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp116.h
branchRCL_3
changeset 44 2b4ea9893b66
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp116.h	Tue Aug 31 15:37:04 2010 +0300
@@ -0,0 +1,132 @@
+/*
+* Copyright (c) 2005 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: 
+*   ?description_line
+*
+*/
+
+
+#ifndef CPOSTP116_H
+#define CPOSTP116_H
+
+//  INCLUDES
+#include "FT_CLandmarkTestProcedureBase.h"
+#include <EPos_CPosLmDatabaseManager.h>
+#include <StifLogger.h>
+
+// CLASS DECLARATION
+class CTP116ActiveLmEvent;
+
+/**
+*  Test procedure 116
+*/
+
+
+class CPosTp116 :public CLandmarkTestProcedureBase
+    {
+    public:  // Constructors and destructor
+        
+        /**
+        * C++ default constructor.
+        */
+        
+        CPosTp116(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {};
+        /**
+        * Destructor.
+        */
+        ~CPosTp116() {};
+
+    public: // Functions from base classes
+
+        void CloseTest();
+
+        /**
+        * From CLandmarkTestProcedureBase
+        * Runs the test in the module
+        */
+        void StartL();
+
+    private:
+        void LandmarkEventTestL();
+        
+    private:
+
+        CTP116ActiveLmEvent*         iActiveLmEvent;
+
+    };
+
+class CTP116ActiveLmEvent : public CActive
+    {
+    public:
+        
+        static CTP116ActiveLmEvent* NewL(CStifLogger* aLog);
+      
+        /**
+        * Destructor.
+        */
+        ~CTP116ActiveLmEvent();
+
+    public: 
+        
+        void Start();    
+
+        /**
+        * From CActive
+        * Handles request completion event.
+        */
+        void DoCancel();
+    
+        /**
+        * From CActive.
+        *
+        * Handles request completion event.
+        */
+        void RunL();
+    
+    private:
+
+         /**
+        * C++ constructor.
+        */
+        CTP116ActiveLmEvent(CStifLogger* aLog);
+
+        void ConstructL();
+
+        void VerifyEvent(TPosLmDatabaseEvent event);
+        
+        TInt GetErrors();
+
+        void SetExpectedDatabase(const TDesC&  aDatabaseUri);
+
+    private: // data
+
+        friend class CPosTp116;
+
+        CStifLogger*               iLog; 
+        CPosLmDatabaseManager*  iManager;
+        TPosLmDatabaseEvent     iEvent;
+
+        TInt                    iExpectedEvent;
+        TBuf<255>           	iExpectedDatabase;
+        
+        
+        TInt                    iGlobalErr;
+
+        TBool                   iQueueTest;
+
+    };
+
+#endif      // CPOSTP116_H
+            
+// End of File