featuremgmt/featuremgr/src/inc/featmgrclientserver.h
changeset 0 08ec8eefde2f
child 6 5ffdb8f2067f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 /*
       
     2 * Copyright (c) 2007-2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef FEATMGRCLIENTSERVER_H
       
    21 #define FEATMGRCLIENTSERVER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32cmn.h>
       
    25 #include <featmgr/featurecmn.h>
       
    26 #include "featurepanics.h"
       
    27 
       
    28 // DATA TYPES
       
    29 
       
    30 // Opcodes used in message passing between client and server
       
    31 enum TFeatMgrServRequest
       
    32     {
       
    33 	/**
       
    34 	* Fetches information whether a certain feature is supported.
       
    35 	*
       
    36 	* 0: TFeatureEntry - Feature entry
       
    37   	* 1: TInt - ret - Returns feature support value (0,1) or error code.
       
    38   	*/
       
    39 	EFeatMgrFeatureSupported = 0,
       
    40 
       
    41 	/**
       
    42 	* Fetches information of subset of features support-status.
       
    43 	*
       
    44 	* 0: TInt - Count of features, notification will be requested
       
    45 	* 1: TPtr8 - Feature UID array (RFeatureUidArray)
       
    46   	* 2: TInt - Count of features in response.
       
    47   	*/
       
    48 	EFeatMgrFeaturesSupported,
       
    49 
       
    50    	/**
       
    51 	* Lists all supported features.
       
    52 	*
       
    53 	* 0: In return as a parameter received reference to the client owned 
       
    54     *    RFeatureUidArray array contains Ids of all supported features.
       
    55   	*/
       
    56 	EFeatMgrListSupportedFeatures,
       
    57 
       
    58    	/**
       
    59 	* Number of all supported features.
       
    60 	*
       
    61 	* 0: TInt - err - Returns the number of all supported features.
       
    62   	*/
       
    63 	EFeatMgrNumberOfSupportedFeatures,
       
    64 
       
    65 	/**
       
    66 	* Request for single or subset of features notification.
       
    67 	*
       
    68 	* 0: TPtr8 - On change notification, server sets changed UID (TUid)
       
    69   	* 1: TRequestStatus - Request to be signaled.
       
    70   	*/
       
    71 	EFeatMgrReqNotify,
       
    72 	
       
    73 	/**
       
    74 	* Uids associated with request for single or subset of features notification.
       
    75 	*
       
    76 	* 0: TInt - Count of features, notification will be requested
       
    77 	* 1: TPtr8 - Feature UID array (RFeatureUidArray)
       
    78   	* 2: TInt - err - Operation error code.
       
    79   	*/
       
    80 	EFeatMgrReqNotifyUids,
       
    81 	
       
    82 	/**
       
    83 	* Request cancellation of single feature notification.
       
    84 	*
       
    85 	* 0: TUid - Feature UID
       
    86   	* 1: TRequestStatus - Request to be canceled
       
    87   	* 2: TInt - err - Operation error code.
       
    88   	*/
       
    89 	EFeatMgrReqNotifyCancel,
       
    90 	
       
    91 	/**
       
    92 	* Request cancellation of all features notification.
       
    93 	*
       
    94   	* 0: TInt - err - Operation error code.
       
    95   	*/
       
    96 	EFeatMgrReqNotifyCancelAll,
       
    97 
       
    98 #ifdef EXTENDED_FEATURE_MANAGER_TEST
       
    99    	/**
       
   100   	* Number of notify features.
       
   101   	*
       
   102    	*/
       
   103     EFeatMgrNumberOfNotifyFeatures,
       
   104 
       
   105    	/**
       
   106    	* Number of allocated cells.
       
   107    	*
       
   108    	*/
       
   109     EFeatMgrCountAllocCells,
       
   110 #endif
       
   111     
       
   112     /**
       
   113 	* Enables a certain feature.
       
   114 	*
       
   115 	* 0: TUid - Feature UID
       
   116   	* 1: TInt - err - Operation error code.
       
   117   	*/
       
   118 	EFeatMgrEnableFeature,
       
   119 	
       
   120 	/**
       
   121 	* Disables a certain feature.
       
   122 	*
       
   123 	* 0: TUid - Feature UID
       
   124   	* 1: TInt - err - Operation error code.
       
   125   	*/
       
   126 	EFeatMgrDisableFeature,
       
   127 
       
   128 	/**
       
   129 	* Adds a feature entry.
       
   130 	*
       
   131 	* 0: TFeatureEntry - Feature entry
       
   132   	* 1: TInt - err - Operation error code.
       
   133   	*/
       
   134     EFeatMgrAddFeature,
       
   135 
       
   136 	/**
       
   137 	* Sets a certain feature and associated data.
       
   138 	*
       
   139 	* 0: TUid - Feature UID
       
   140   	* 1: TBool - Feature enable or disable.
       
   141   	* 2: TInt - Feature data.
       
   142   	* 3: TInt - err - Operation error code.
       
   143   	*/
       
   144 	EFeatMgrSetFeatureAndData,
       
   145 	
       
   146 	/**
       
   147 	* Sets certain feature's data.
       
   148 	*
       
   149 	* 0: TUid - Feature UID
       
   150   	* 1: TInt - Feature data.
       
   151   	* 2: TInt - err - Operation error code.
       
   152   	*/
       
   153 	EFeatMgrSetFeatureData,
       
   154 
       
   155 	/**
       
   156 	* Deletes a feature entry.
       
   157 	*
       
   158 	* 0: TUid - Feature UID
       
   159   	* 1: TInt - err - Operation error code.
       
   160   	*/
       
   161     EFeatMgrDeleteFeature,
       
   162     
       
   163     /**
       
   164     * Software Installation started
       
   165     * 
       
   166     */ 
       
   167     EFeatMgrSWIStart,
       
   168     
       
   169     /**
       
   170     * Software Installation ended
       
   171     * 
       
   172     */ 
       
   173     EFeatMgrSWIEnd 
       
   174     };
       
   175 
       
   176 
       
   177 
       
   178 #endif  // FEATMGRCLIENTSERVER_H
       
   179             
       
   180 // End of File