omadm/omadmappui/OmaDmCPPlugin/inc/OmaDMCPPlugin.h
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     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:  This class implements ECom interface for OmaDmCPPlugin.dll
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DM_CP_PLUGIN_H
       
    20 #define DM_CP_PLUGIN_H
       
    21 
       
    22 // System includes
       
    23 #include <gsplugininterface.h>
       
    24 
       
    25 // Move this EasAppUids.h
       
    26 #define KUidOmaDmCPPluginDll   0x1028339D
       
    27 #define KUidOmaDmCPPluginImpl  0x1028339E
       
    28 
       
    29 
       
    30 class CAknNullService;
       
    31 
       
    32 /**
       
    33 * OmaDmCP ECom Plugin
       
    34 */
       
    35 class COmaDmCPPlugin : public CGSPluginInterface,
       
    36                      public MAknServerAppExitObserver
       
    37     {    
       
    38 	public: 
       
    39 
       
    40 	    /**
       
    41 	    * Two-Phased constructor
       
    42 	    * Uses Leave code KErrNotFound if implementation is not found.
       
    43 	    */                                                 
       
    44 	    static CGSPluginInterface* NewL();
       
    45 	    
       
    46 	    /**
       
    47 	    * From CAknView Returns this view Id.
       
    48 	    */
       
    49 		TUid Id() const;
       
    50 	    
       
    51 	    /**
       
    52 	    * returns the caption to be displayed in GS view
       
    53 	    *
       
    54 	    * @param aCaption - The caption to be displayed is to be copied here.
       
    55 	    */
       
    56 	    void GetCaptionL( TDes& aCaption ) const;
       
    57 		
       
    58 		/**
       
    59 		* returns the icon to be displayed in GS view
       
    60 		* 
       
    61 		* @param aIconType - type of icon to be displayed
       
    62 		*/
       
    63 	    CGulIcon* CreateIconL( const TUid aIconType );
       
    64 	    
       
    65 	    /**
       
    66 	    * Destructor
       
    67 	    */
       
    68 	    ~COmaDmCPPlugin();            
       
    69 		
       
    70 		/**
       
    71         * From CGSPluginInterface.
       
    72         * @return this plugin's provider category.
       
    73         */
       
    74         TInt PluginProviderCategory() const;
       
    75 
       
    76         /**
       
    77         * From CGSPluginInterface.
       
    78         * @return this plugin's item type.
       
    79         */
       
    80         TGSListboxItemTypes ItemType();
       
    81 
       
    82         /**
       
    83         * From CGSPluginInterface.
       
    84         * @param aSelectionType selection type.
       
    85         */
       
    86         void HandleSelection( const TGSSelectionTypes aSelectionType );
       
    87 	
       
    88 	    /**
       
    89         * Opens the Device Manager application
       
    90         * @param None, @return None
       
    91         */
       
    92         void OpenDmAppL();
       
    93 
       
    94 	private:
       
    95 	  
       
    96 		void ConstructL();
       
    97 		
       
    98 		/**
       
    99 		* Constructor
       
   100 		*/
       
   101 	    COmaDmCPPlugin();
       
   102 	    
       
   103 	    /**
       
   104         * From CAknView.
       
   105         * This implementation is empty because this class, being just a dialog,
       
   106         * does not implement the CAknView finctionality.
       
   107         */
       
   108         void DoActivateL( const TVwsViewId& aPrevViewId,
       
   109                           TUid aCustomMessageId,
       
   110                           const TDesC8& aCustomMessage );
       
   111 
       
   112         /**
       
   113         * From CAknView.
       
   114         * This implementation is empty because this class, being just a dialog,
       
   115         * does not implement the CAknView finctionality.
       
   116         */
       
   117         void DoDeactivate();
       
   118         
       
   119         /**
       
   120         * Closes DmUi   
       
   121         * This closes Dm Ui when CAknNullService is destroyed.
       
   122         * 
       
   123         */
       
   124         void CloseDmUi();
       
   125 		CEikonEnv* env;
       
   126 		TInt       iResId;
       
   127 		
       
   128 		/**
       
   129         * AVKON NULL Service.
       
   130         * Own.
       
   131         */
       
   132         CAknNullService* iNullService;
       
   133 	
       
   134 };
       
   135 
       
   136 #endif // DM_CP_PLUGIN_H
       
   137 //End of file