pkiutilities/CertmanUi/INC/CertmanuiPlugin.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2003-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:   Declaration of the CCertManUIPlugin class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef   CERTMANUIPLUGIN_H
       
    20 #define   CERTMANUIPLUGIN_H
       
    21 
       
    22 // Includes
       
    23 #include <aknview.h>
       
    24 #include <eikclb.h>
       
    25 #include <ConeResLoader.h>
       
    26 
       
    27 #include <gsplugininterface.h>
       
    28 
       
    29 // Forward declarations
       
    30 class CCertManUIKeeper;
       
    31 class CCertManUIPluginContainer;
       
    32 class CAknViewAppUi;
       
    33 
       
    34 // Constants
       
    35 
       
    36 /**
       
    37 * Used for both the view UID and the ECOM plugin implementation UID.
       
    38 */
       
    39 const TUid KCertManUIPluginUid = { 0x10008D3D };
       
    40 
       
    41 // CLASS DECLARATION
       
    42 
       
    43 /**
       
    44 * @since Series60_3.1
       
    45 */
       
    46 class CCertManUIPlugin : public CGSPluginInterface
       
    47     {
       
    48 
       
    49     public: // Constructors and destructor
       
    50 
       
    51         /**
       
    52         * Symbian OS two-phased constructor
       
    53         * @return
       
    54         */
       
    55         static CCertManUIPlugin* NewL( TAny* aInitParams );
       
    56 
       
    57         /**
       
    58         * Destructor.
       
    59         */
       
    60         ~CCertManUIPlugin();
       
    61 
       
    62     public: // From CAknView
       
    63 
       
    64         /**
       
    65         * See base class.
       
    66         *
       
    67         */
       
    68         TUid Id() const;
       
    69 
       
    70         /**
       
    71         * See base class.
       
    72         */
       
    73         void HandleClientRectChange();
       
    74 
       
    75         /**
       
    76         * See base class.
       
    77         */
       
    78         void DoActivateL( const TVwsViewId& aPrevViewId,
       
    79                           TUid aCustomMessageId,
       
    80                           const TDesC8& aCustomMessage );
       
    81 
       
    82         /**
       
    83         * See base class.
       
    84         */
       
    85         void DoDeactivate();
       
    86 
       
    87         /**
       
    88         * See base class.
       
    89         */
       
    90         void GetCaptionL( TDes& aCaption ) const;
       
    91 
       
    92     private: // New
       
    93 
       
    94         /**
       
    95         * C++ default constructor.
       
    96         */
       
    97         CCertManUIPlugin();
       
    98 
       
    99         /**
       
   100         * Symbian OS default constructor.
       
   101         */
       
   102         void ConstructL();
       
   103 
       
   104         /**
       
   105         * Used in ConstructL to get resource file
       
   106         */
       
   107         void AddResourceFileL();
       
   108 
       
   109     private: // Data
       
   110 
       
   111         // Resouce loader.
       
   112         RConeResourceLoader iResourceLoader;
       
   113 
       
   114         CCertManUIKeeper* iCertManUIKeeper;
       
   115 
       
   116         // Pointer to the container
       
   117         CCertManUIPluginContainer* iContainer;
       
   118 
       
   119         //Previous view (Security view)
       
   120         TVwsViewId iPrevViewId;
       
   121 
       
   122         // Indicates if CertManUI is initialized
       
   123         TBool iCertManUIInitialized;
       
   124     };
       
   125 
       
   126 #endif //   CERTMANUIPLUGIN_H
       
   127 
       
   128 // End of File