taskswitcher/teleportui/hgteleportappecom/inc/hgteleportappecom.h
changeset 4 4d54b72983ae
parent 3 fb3763350a08
child 5 c743ef5928ba
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
     1 /*
       
     2 * ============================================================================
       
     3 *  Name        : hgteleportappecom.h
       
     4 *  Part of     : Teleport
       
     5 *  Description : Teleport application ecom plugin
       
     6 *  Version     : %version: sa1spcx1#4.1.3 %
       
     7 *
       
     8 *  Copyright © 2009 Nokia.  All rights reserved.
       
     9 *  This material, including documentation and any related computer
       
    10 *  programs, is protected by copyright controlled by Nokia.  All
       
    11 *  rights are reserved.  Copying, including reproducing, storing,
       
    12 *  adapting or translating, any or all of this material requires the
       
    13 *  prior written consent of Nokia.  This material also contains
       
    14 *  confidential information which may not be disclosed to others
       
    15 *  without the prior written consent of Nokia.
       
    16 * ============================================================================
       
    17 */
       
    18 
       
    19 #ifndef HGTELEPORTAPPECOM_H
       
    20 #define HGTELEPORTAPPECOM_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <akncapserveralternatefsplugin.h>
       
    24 
       
    25 /**
       
    26  * Teleport ecom plugin which is loaded by AknCapServer as an alternate Fast 
       
    27  * Swap. Uses P&S to show/dismiss the Teleport application. 
       
    28  */
       
    29 class CHgTeleportEcomPlugin : public CAknCapAppServerAlternateFs
       
    30     {
       
    31 public:
       
    32     
       
    33     /**
       
    34      * Symbian two phased constructors.
       
    35      *
       
    36      * @return CHgTeleportEcomPlugin pointer.
       
    37      */
       
    38     static CHgTeleportEcomPlugin* NewL();
       
    39     
       
    40     /**
       
    41      * Destructor.
       
    42      */
       
    43     ~CHgTeleportEcomPlugin();
       
    44     
       
    45 public: 
       
    46     
       
    47     // From CAknCapAppServerAlternateFs
       
    48     /**
       
    49      * Shows the alternate fast swap.
       
    50      */
       
    51     virtual void Show();
       
    52 
       
    53     /**
       
    54      * Dismisses the alternate fast swap.
       
    55      */
       
    56     virtual void Dismiss();
       
    57 
       
    58     /**
       
    59      * Checks if alternate fast swap is currently visible.
       
    60      * 
       
    61      * @return ETrue If alternate FS is visible.
       
    62      */    
       
    63     virtual TBool IsVisible();
       
    64 
       
    65     /**
       
    66      * Checks if alternate fast swap is ready to be shown.
       
    67      * 
       
    68      * @return ETrue If alternate FS is ready.
       
    69      */    
       
    70     virtual TBool IsReady();
       
    71 
       
    72     /**
       
    73      * Forward long app key to the alternate fast swap.
       
    74      */
       
    75     virtual void HandleLongAppKeyPress();
       
    76 
       
    77     /**
       
    78      * Forward short app key to the alternate fast swap.
       
    79      */
       
    80     virtual void HandleShortAppKeyPress();
       
    81 
       
    82 private:
       
    83 
       
    84     /**
       
    85      * Default constructor, implicitly called by NewL().
       
    86      */
       
    87     CHgTeleportEcomPlugin();
       
    88     
       
    89     /**
       
    90      * 2nd phase construction, called by NewL().
       
    91      */
       
    92     void ConstructL();
       
    93     
       
    94     /**
       
    95      * Sets the P&S property to given value.
       
    96      * 
       
    97      * @param aValue Value
       
    98      */
       
    99     void SetTeleportStateProperty( TInt aValue );
       
   100     
       
   101     /**
       
   102      * Defines the P&S property.
       
   103      */
       
   104     void DefineTeleportStateProperty();
       
   105 
       
   106     };
       
   107     
       
   108 #endif // HGTELEPORTAPPECOM_H