vtuis/videotelui/inc/CVtUiBlankControl.h
branchRCL_3
changeset 25 779871d1e4f4
parent 0 ed9695c8bcbe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vtuis/videotelui/inc/CVtUiBlankControl.h	Wed Sep 01 12:29:12 2010 +0100
@@ -0,0 +1,98 @@
+/*
+* Copyright (c) 2004 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:  Blank control for Video Telephone application.
+*
+*/
+
+
+
+#ifndef CVTUIBLANKCONTROL_H
+#define CVTUIBLANKCONTROL_H
+
+//  INCLUDES
+#include    <coecntrl.h>
+
+// CLASS DECLARATION
+
+/**
+*  Blank control for Video Telephone application.
+*
+*  @since Series 60 2.6
+*/
+class CVtUiBlankControl
+    : public CCoeControl
+    {
+    public: // Constructors and destructor
+        
+        /**
+        * C++ constructor.
+        */
+        CVtUiBlankControl();
+
+        /**
+        * Symbian constructor.
+        * @param aRect control rectangle.
+        */
+        void ConstructL( const TRect& aRect );
+
+        /**
+        * C++ destructor.
+        */
+        ~CVtUiBlankControl();
+
+    public: // New functions
+
+        /**
+        * Sets blanker active / inactive.
+        * @param aStatus ETrue if to be activated.
+        */
+        void SetActive( TBool aStatus );
+
+    protected: // Functions from base classes
+
+        /**
+        * From CCoeControl, handles key events.
+        * @param aKeyEvent key event.
+        * @param aType type of event.
+        */
+        virtual TKeyResponse OfferKeyEventL(
+            const TKeyEvent& aKeyEvent,
+            TEventCode aType );
+
+        /**
+        * From CCoeControl, draws the control.
+        * @param aRect area to be drawn.
+        */
+        virtual void Draw( const TRect& aRect ) const;
+
+        /**
+        * From CCoeControl, handles size changes.
+        */
+        virtual void SizeChanged();
+
+        /**
+        * From CCoeControl, handles position changes.
+        */
+        virtual void PositionChanged();
+
+    private: 
+
+        // ETrue if blanker is active.
+        TBool iBlankerActive;
+
+    };
+
+#endif      // CVTUIBLANKCONTROL_H
+            
+// End of File