extras/about/aboutgsplugin/inc/aboutgsplugin.h
changeset 13 83b3f7c09925
parent 2 c4c2ac0facfd
equal deleted inserted replaced
2:c4c2ac0facfd 13:83b3f7c09925
     1 /*
       
     2 * Copyright (c) 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:  Container for the About sub-folder
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ABOUTGSPLUGIN_H
       
    20 #define ABOUTGSPLUGIN_H
       
    21 
       
    22 // Includes
       
    23 #include <aknview.h>
       
    24 #include <eikclb.h>
       
    25 #include <gsplugininterface.h>
       
    26 #include <gsfwviewuids.h>
       
    27 #include <ConeResLoader.h>
       
    28 #include <AknNullService.h>
       
    29 
       
    30 // Classes referenced
       
    31 class CAknViewAppUi;
       
    32 class RConeResourceLoader;
       
    33 
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 * CAboutGsPlugin view class.
       
    39 * @since S60_5.0
       
    40 */
       
    41 class CAboutGsPlugin : public CGSPluginInterface
       
    42     {
       
    43     public: // Constructors and destructor
       
    44 
       
    45         /**
       
    46         * Symbian OS two-phased constructor
       
    47         * @return
       
    48         */
       
    49         static CAboutGsPlugin* NewL( TAny* aInitParams );
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         ~CAboutGsPlugin();
       
    55 
       
    56     public: // From CAknView
       
    57 
       
    58         /**
       
    59         * See base class.
       
    60         */
       
    61         TUid Id() const;
       
    62 
       
    63         /**
       
    64         * See base class.
       
    65         */
       
    66         void DoActivateL( const TVwsViewId& aPrevViewId,
       
    67                           TUid aCustomMessageId,
       
    68                           const TDesC8& aCustomMessage );
       
    69         /**
       
    70         * See base class.
       
    71         */
       
    72         void DoDeactivate();
       
    73 
       
    74     public: // From CGSPluginInterface
       
    75 
       
    76         /**
       
    77         * See base class.
       
    78         */
       
    79         void GetCaptionL( TDes& aCaption ) const;
       
    80 
       
    81         /**
       
    82         * See base class.
       
    83         */
       
    84         TInt PluginProviderCategory() const;
       
    85 
       
    86         /**
       
    87         * @see CGSPluginInterface header file.
       
    88         */
       
    89         CGulIcon* CreateIconL( const TUid aIconType );
       
    90 
       
    91         /**
       
    92         * See base class.
       
    93         */
       
    94         TGSListboxItemTypes ItemType();
       
    95 
       
    96         /**
       
    97         * See base class.
       
    98         */
       
    99         void HandleSelection(const TGSSelectionTypes aSelectionType );
       
   100         
       
   101     protected: // New
       
   102         /**
       
   103         * C++ default constructor.
       
   104         */
       
   105         CAboutGsPlugin();
       
   106     
       
   107      private:
       
   108         /**
       
   109         * Symbian OS default constructor.
       
   110         */
       
   111         void ConstructL();
       
   112         
       
   113         void LaunchAboutAppL();
       
   114         void OpenLocalizedResourceFileL();
       
   115          
       
   116     private: // Data
       
   117 
       
   118         // Resource loader.
       
   119         RConeResourceLoader iPlgResourceLoader;
       
   120         CAknNullService *iNullService;
       
   121     };
       
   122 
       
   123 #endif //ABOUTGSPLUGIN_H
       
   124 
       
   125 // End of File