taskswitcher/taskswitcherui/taskswitcherappecom/inc/tsappecom.h
changeset 4 4d54b72983ae
child 88 3321d3e205b6
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Taskswitcher application ecom plugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TSAPPECOM_H
       
    20 #define TSAPPECOM_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <akncapserveralternatefsplugin.h>
       
    24 
       
    25 /**
       
    26  * Taskswitcher ecom plugin which is loaded by AknCapServer as an alternate Fast 
       
    27  * Swap. Uses P&S to show/dismiss the Taskswitcher application. 
       
    28  */
       
    29 class CTsEcomPlugin : public CAknCapAppServerAlternateFs
       
    30     {
       
    31 public:
       
    32     
       
    33     /**
       
    34      * Symbian two phased constructors.
       
    35      *
       
    36      * @return CTsEcomPlugin pointer.
       
    37      */
       
    38     static CTsEcomPlugin* NewL();
       
    39     
       
    40     /**
       
    41      * Destructor.
       
    42      */
       
    43     ~CTsEcomPlugin();
       
    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     CTsEcomPlugin();
       
    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 SetTaskswitcherStateProperty( TInt aValue );
       
   100     
       
   101     /**
       
   102      * Defines the P&S property.
       
   103      */
       
   104     void DefineTaskswitcherStateProperty();
       
   105 
       
   106     };
       
   107     
       
   108 #endif // TSAPPECOM_H