idlefw/plugins/pslnactiveidleplugin/inc/gsactiveidleplugin.h
branchRCL_3
changeset 8 d0529222e3f0
parent 4 1a2a00e78665
child 11 bd874ee5e5e2
equal deleted inserted replaced
4:1a2a00e78665 8:d0529222e3f0
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Psln Active Idle settings plugin.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_GSACTIVEIDLEPLUGIN_H
       
    20 #define C_GSACTIVEIDLEPLUGIN_H
       
    21 
       
    22 #include <gsplugininterface.h>
       
    23 #include <coneresloader.h>
       
    24 
       
    25 class CGSActiveIdlePluginContainer;
       
    26 class CPslnFWPluginInterface;
       
    27 class CPslnFWPluginHandler;
       
    28 
       
    29 
       
    30 /**
       
    31  *  CGSActiveIdlePlugin view class for Psln Active Idle settings.
       
    32  *  @since S60 3.2
       
    33  *
       
    34  */
       
    35 class CGSActiveIdlePlugin : public CGSPluginInterface
       
    36 {
       
    37 
       
    38 public: // Constructors and destructor
       
    39 
       
    40     /**
       
    41      * Symbian OS two-phased constructor
       
    42      *
       
    43      * @param aInitParams param not used.
       
    44      * @return GS connection view.
       
    45      */
       
    46     static CGSActiveIdlePlugin* NewL(TAny* aInitParams);
       
    47 
       
    48     /**
       
    49      * Destructor
       
    50      */
       
    51     ~CGSActiveIdlePlugin();
       
    52 
       
    53 // From CGSPluginInterface
       
    54 
       
    55     /**
       
    56      * @see CGSPluginInterface header file.
       
    57      */
       
    58     void GetCaptionL(TDes& aCaption) const;
       
    59 
       
    60     /**
       
    61      * @see CGSPluginInterface header file.
       
    62      */
       
    63     TInt PluginProviderCategory() const;
       
    64 
       
    65     /**
       
    66      * @see CGSPluginInterface header file.
       
    67      */
       
    68     TBool Visible() const;
       
    69 
       
    70 // from base classes
       
    71 
       
    72     /**
       
    73      * Returns view id.
       
    74      * @return TUid
       
    75      */
       
    76     TUid Id() const;
       
    77 
       
    78     /**
       
    79      * Handles commands.
       
    80      * @param aCommand Command to be handled.
       
    81      *
       
    82      */
       
    83     void HandleCommandL(TInt aCommand);
       
    84 
       
    85 protected: // From CAknView
       
    86 
       
    87     /**
       
    88      * @see CAknView.
       
    89      */
       
    90     void DoActivateL(
       
    91         const TVwsViewId& aPrevViewId,
       
    92         TUid aCustomMessageId,
       
    93         const TDesC8& aCustomMessage);
       
    94 
       
    95     /**
       
    96      * @see CAknView.
       
    97      */
       
    98     void DoDeactivate();
       
    99 
       
   100 // Construction
       
   101 
       
   102     /**
       
   103      * C++ default constructor.
       
   104      */
       
   105     CGSActiveIdlePlugin();
       
   106 
       
   107     /**
       
   108      * Symbian OS default constructor.
       
   109      *
       
   110      */
       
   111     void ConstructL();
       
   112 
       
   113 private: // data
       
   114 
       
   115     /// Resource loader.
       
   116     RConeResourceLoader             iResourceLoader;
       
   117 
       
   118     /// Container. Owned.
       
   119     CGSActiveIdlePluginContainer*   iContainer;
       
   120 
       
   121     /// Previous view id.
       
   122     TVwsViewId                      iPrevViewId;
       
   123 
       
   124     /// Plugin loader. Owned.
       
   125     CPslnFWPluginHandler*           iPluginLoader;
       
   126 
       
   127 };
       
   128 
       
   129 #endif // C_GSACTIVEIDLEPLUGIN_H
       
   130 
       
   131 // End of File.