sensorservices/tiltcompensationssy/inc/tcstatetiltopen.h
changeset 0 4e1aa6a622a0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sensorservices/tiltcompensationssy/inc/tcstatetiltopen.h	Tue Feb 02 00:53:00 2010 +0200
@@ -0,0 +1,84 @@
+/*
+* 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:  TTCStateTiltOpen class declaration.
+*
+*/
+
+
+
+#ifndef TCSTATETILTOPEN_H
+#define TCSTATETILTOPEN_H
+
+// INCLUDES
+#include "tcstatetilt.h"
+
+/**
+*  Open state for tilt channel.
+*
+*  @lib None
+*  @since S60 5.0
+*/
+NONSHARABLE_CLASS( CTCStateTiltOpen ) : public CTCStateTilt
+    {
+    public:
+    
+        /**
+        * Two phased constructor.
+        * 
+        * @param aStatePool State pool interface.
+        * @param aTransactionHandler Transaction handler interface.
+        * @return CTCStateTiltOpen
+        */
+        static CTCStateTiltOpen* NewL( MTCStatePool& aStatePool,
+            MTCTransactionHandler& aTransactionHandler );
+        
+        /**
+        * Two phased constructor.
+        * 
+        * @param aStatePool State pool interface.
+        * @param aTransactionHandler Transaction handler interface.
+        * @return CTCStateTiltOpen
+        */
+        static CTCStateTiltOpen* NewLC( MTCStatePool& aStatePool,
+            MTCTransactionHandler& aTransactionHandler );
+    
+    private: // From base classes
+    
+        // @see CTCStateBase
+        void HandleEventL( TTCEventId aId, TTCEvent* aEvent );
+    
+        // @see CTCStateBase
+        void HandleTransactionCompletedL( TTCTransactionId aTransactionId, TInt aError );
+
+        // @see CTCStateBase
+        void HandleStateEntryL();
+
+        // @see CTCStateBase
+        void HandleStateExitL();
+
+    private:
+    
+        /**
+        * C++ constructor
+        *
+        * @param aStatePool
+        * @param aTransactionHandler
+        */
+        CTCStateTiltOpen( MTCStatePool& aStatePool,
+            MTCTransactionHandler& aTransactionHandler );
+    };
+
+#endif // TCSTATETILTOPEN_H
+
+// End of File