uifw/AvKon/akncompamode/gs/inc/akncompags.h
changeset 21 558113899881
parent 14 3320e4e6e8bb
child 22 75713bee6484
child 33 b3425bf29f82
equal deleted inserted replaced
14:3320e4e6e8bb 21:558113899881
     1 /*
       
     2 * Copyright (c) 2008 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:  View for compa mode settings.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef AKNCOMPAGS_H
       
    20 #define AKNCOMPAGS_H
       
    21 
       
    22 #include <aknsettingpage.h>
       
    23 #include <gsbaseview.h>
       
    24 #include <ConeResLoader.h>
       
    25 #include <gsplugininterface.h>
       
    26 
       
    27 
       
    28 const TUid KAknCompaGSUid = { 0x2001114A };
       
    29 _LIT( KAknCompaGSIconDirAndName, "z:avkon.mbm"); // Use KDC_BITMAP_DIR
       
    30 _LIT( KAknCompaGSResourceFileName, "z:akncompagsrsc.rsc" );
       
    31 
       
    32 
       
    33 class CAknViewAppUi;
       
    34 class CAknCompaGSContainer;
       
    35 class CAknCompaGSModel;
       
    36 
       
    37 
       
    38 /**
       
    39 *  CAknCompaGS view class for compa mode settings
       
    40 *  Handles viewing of setting items.
       
    41 *  @since Series 60_5.0
       
    42 *
       
    43 */
       
    44 class CAknCompaGS : public CGSBaseView
       
    45     {
       
    46     public: // Constructors and destructor
       
    47 
       
    48         /**
       
    49         * Symbian OS two-phased constructor
       
    50         * @return GS connection view.
       
    51         */
       
    52         static CAknCompaGS* NewL( TAny* aInitParams );
       
    53 
       
    54         /**
       
    55         * Destructor
       
    56         */
       
    57         ~CAknCompaGS();
       
    58 
       
    59     public: // From CGSPluginInterface
       
    60 
       
    61         /**
       
    62         * @see CGSPluginInterface header file.
       
    63         */
       
    64         void GetCaptionL( TDes& aCaption ) const;
       
    65 
       
    66         /**
       
    67         * See base class.
       
    68         */
       
    69         CGulIcon* CreateIconL( const TUid aIconType );
       
    70 
       
    71         /**
       
    72         * @see CGSPluginInterface header file.
       
    73         */
       
    74         TInt PluginProviderCategory() const;
       
    75 
       
    76         /**
       
    77         * @see CGSPluginInterface header file.
       
    78         */
       
    79         TBool Visible() const;
       
    80 
       
    81     public: // from base classes
       
    82 
       
    83         /**
       
    84         * Returns view id.
       
    85         * @return TUid
       
    86         */
       
    87         TUid Id() const;
       
    88 
       
    89         /**
       
    90         * Handles commands.
       
    91         * @param aCommand Command to be handled.
       
    92         *
       
    93         */
       
    94         void HandleCommandL( TInt aCommand );
       
    95 
       
    96     public: // new
       
    97 
       
    98         CAknCompaGSContainer* Container();
       
    99 
       
   100     protected: // From CAknView
       
   101 
       
   102         void DoActivateL( const TVwsViewId& aPrevViewId,
       
   103                           TUid aCustomMessageId,
       
   104                           const TDesC8& aCustomMessage );
       
   105 
       
   106     protected:
       
   107 
       
   108         /**
       
   109         * C++ default constructor.
       
   110         */
       
   111         CAknCompaGS();
       
   112 
       
   113         /**
       
   114         * Symbian OS default constructor.
       
   115         *
       
   116         */
       
   117         void ConstructL();
       
   118 
       
   119     private: // from CGSBaseView
       
   120 
       
   121         void NewContainerL();
       
   122         void HandleListBoxSelectionL();
       
   123 
       
   124     private:
       
   125         CAknCompaGSModel *iModel;
       
   126         TVwsViewId iPrevViewId;
       
   127         RConeResourceLoader iResourceLoader;
       
   128 
       
   129     };
       
   130 
       
   131 #endif //AKNCOMPAGS_H
       
   132 
       
   133 // End of File