omads/omadsappui/AspSyncUtil/inc/AspProfile.h
branchRCL_3
changeset 14 b922b9936679
parent 1 95fdac6ccb5c
child 48 2bb96f4ecad8
equal deleted inserted replaced
8:ad0f53516d84 14:b922b9936679
    34 const TInt ELangIndon_Apac=327;
    34 const TInt ELangIndon_Apac=327;
    35 const TUid KCRUidDSDefaultProfileInternalKeys  = { 0x20021338 };
    35 const TUid KCRUidDSDefaultProfileInternalKeys  = { 0x20021338 };
    36 const TInt KNsmlDsDefaultProfile = 0x0;
    36 const TInt KNsmlDsDefaultProfile = 0x0;
    37 
    37 
    38 // CONSTANTS
    38 // CONSTANTS
       
    39 
       
    40 // Visibility settings for operator specific sync profiles on UI
       
    41 // - Normal = Profile shown without any specific formatting
       
    42 // - ReadOnly = Profile fields locked (non-editable), deletion not allowed
       
    43 // - Hidden = Profile not shown in UI
       
    44 enum TOperatorProfileVisibility
       
    45     {
       
    46     EProfileVisibilityNormal = 0,
       
    47     EProfileVisibilityReadOnly = 1,
       
    48     EProfileVisibilityHidden = 2
       
    49     };
    39 
    50 
    40 // FORWARD DECLARATIONS
    51 // FORWARD DECLARATIONS
    41 class CAspProfile;
    52 class CAspProfile;
    42 
    53 
    43 
    54 
  1178 		* @param aProfile.
  1189 		* @param aProfile.
  1179 		* @return Boolean.
  1190 		* @return Boolean.
  1180         */
  1191         */
  1181         static TBool IsPCSuiteProfile(CAspProfile* aProfile);
  1192         static TBool IsPCSuiteProfile(CAspProfile* aProfile);
  1182         
  1193         
       
  1194         /**
       
  1195         * Is this profile Operator specific profile.
       
  1196         * @param aProfile.
       
  1197         * @return Boolean.
       
  1198         */
       
  1199         static TBool IsOperatorProfileL(CAspProfile* aProfile);
       
  1200         
       
  1201         /**
       
  1202         * Get Operator adapter Uid.
       
  1203         * @return Operator adapter Uid .
       
  1204         */
       
  1205         static TInt OperatorAdapterUidL();  
       
  1206         
       
  1207         /**
       
  1208         * Get Profile adapter Uid.
       
  1209         * @return Profile adapter Uid .
       
  1210         */
       
  1211         static TInt ProfileAdapterUidL();
       
  1212 
       
  1213         /**
       
  1214         * Get Operator profile visibility setting. 
       
  1215         * @return Visibility setting value.
       
  1216         */
       
  1217         static TInt ProfileVisibilityL();
       
  1218 
       
  1219         
       
  1220         /**
       
  1221         * Is this profile read-only operator specific profile.
       
  1222         * @return Boolean.
       
  1223         */
       
  1224         TBool IsReadOnlyOperatorProfileL();
       
  1225         
       
  1226         /**
       
  1227         * Is this profile hidden operator specific profile.
       
  1228         * @return Boolean.
       
  1229         */
       
  1230         TBool IsHiddenOperatorProfileL();
       
  1231 
       
  1232         /**
       
  1233          * Does the given serverID equal with the operator specific
       
  1234          * serverID value (defined in central repository).
       
  1235          * @param aServerId to be compared
       
  1236          * @return Boolean
       
  1237          */
       
  1238         static TBool EqualsToOperatorServerId( const TDesC& aServerId );
       
  1239 
  1183     public:
  1240     public:
  1184   		/**
  1241   		/**
  1185 		* Check mandatory task data.
  1242 		* Check mandatory task data.
  1186 		* @param aProfile.
  1243 		* @param aProfile.
  1187 		* @param aContentCount.
  1244 		* @param aContentCount.