omads/omadsappui/OmaDsAppUiPlugin/inc/OmaDsAppUiPluginInterface.h
branchRCL_3
changeset 25 4f0867e42d62
parent 0 dab8a81a92de
equal deleted inserted replaced
24:8e7494275d3a 25:4f0867e42d62
       
     1 /*
       
     2 * Copyright (c) 2002 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 COmaDsAppUiPlugin.dll
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _NSML_DS_GS_PLUGIN_H_
       
    20 #define _NSML_DS_GS_PLUGIN_H_
       
    21 
       
    22 // System includes
       
    23 #include <gsplugininterface.h>
       
    24 #include "AspSyncUtilApi.h"
       
    25 
       
    26 #include <AknServerApp.h> 
       
    27 
       
    28 #define KUidNsmlDSGSPluginDll   0x102833A1
       
    29 #define KUidNsmlDSGSPluginImpl  0x102833A2
       
    30 
       
    31 // Use this UID in registry file as well.
       
    32 // UID belongs omadsapp.exe
       
    33 #define KDsAppUid 0x101F6DE4
       
    34     
       
    35 class CAknNullService;
       
    36 
       
    37 /**
       
    38 * DsGS ECom Plugin
       
    39 */
       
    40 class COmaDsAppUiPluginInterface : public CGSPluginInterface, 
       
    41 								   public MAknServerAppExitObserver
       
    42     {    
       
    43 	public: // Constructors & destructors
       
    44 
       
    45 	    /**
       
    46 	    * Two-Phased constructor
       
    47 	    * Creates new DsUi plugin.
       
    48 	    * Uses Leave code KErrNotFound if implementation is not found.
       
    49 	    */                                                 
       
    50 	    static CGSPluginInterface* NewL();
       
    51 	    
       
    52 	    /**
       
    53 	    * From CAknView Returns this view Id.
       
    54 	    */
       
    55 		TUid Id() const;
       
    56 	    
       
    57 	    /**
       
    58 	    * returns the caption to be displayed in GS view
       
    59 	    *
       
    60 	    * @param aCaption - The caption to be displayed is to be copied here.
       
    61 	    */
       
    62 	    void GetCaptionL( TDes& aCaption ) const;
       
    63 		
       
    64 		/**
       
    65 		* returns the icon to be displayed in GS view
       
    66 		* 
       
    67 		* @param aIconType - type of icon to be displayed
       
    68 		*/
       
    69 	    CGulIcon* CreateIconL( const TUid aIconType );
       
    70 	    
       
    71 	    /**
       
    72 	    * Destructor
       
    73 	    */
       
    74 	    ~COmaDsAppUiPluginInterface();   
       
    75 
       
    76     	/**
       
    77         * From CGSPluginInterface.
       
    78         * @return this plugin's provider category.
       
    79         */
       
    80         TInt PluginProviderCategory() const;
       
    81 
       
    82         /**
       
    83         * From CGSPluginInterface.
       
    84         * @return this plugin's item type.
       
    85         */
       
    86         TGSListboxItemTypes ItemType();
       
    87          
       
    88 	    /**
       
    89         * From CGSPluginInterface.
       
    90         * @param aSelectionType selection type.
       
    91         */
       
    92         void HandleSelection( const TGSSelectionTypes aSelectionType );
       
    93 	
       
    94 	protected:        
       
    95 	    
       
    96 	    /**
       
    97 	    * From CAknView Activates this view.
       
    98 	    */
       
    99 		void DoActivateL(const TVwsViewId& aPrevViewId,
       
   100 		    			 TUid aCustomMessageId, 
       
   101 		    			 const TDesC8& aCustomMessage);		
       
   102 		/**
       
   103 	    * From CAknView Deactivates this view.
       
   104 	    */
       
   105 		void DoDeactivate();		
       
   106 
       
   107 	private:
       
   108 	  	void ConstructL();
       
   109 		
       
   110 		/**
       
   111 		* Constructor
       
   112 		*/
       
   113 	    COmaDsAppUiPluginInterface();
       
   114 	
       
   115         void LaunchDsAppL() ;
       
   116 
       
   117 	private:
       
   118 			
       
   119 		CEikonEnv* env;
       
   120 		TInt       iResId;
       
   121 		/**
       
   122         * AVKON NULL Service.
       
   123         * Own.
       
   124         */
       
   125         CAknNullService* iNullService;
       
   126 };
       
   127 
       
   128 #endif //_NSML_DS_GS_PLUGIN_H_
       
   129 
       
   130 //End of file