wvuing/IMPSServiceSettingsUI/SharedDataSrc/CIMPSSharedDataHandler.cpp
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Shared data handler
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include    "CIMPSSharedDataHandler.h"
       
    20 #include	"MIMPSSharedDataObserver.h"
       
    21 #include	"WVSettingsSharedDataNG.h"
       
    22 #include	"IMPSSharedDataDefs.h"
       
    23 
       
    24 #include	<shareddatavalues.h>
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CWVSettingsUICheckboxSettingPage::NewL
       
    30 // Two-phased constructor.
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 CIMPSSharedDataHandler* CIMPSSharedDataHandler::NewL(
       
    34     MIMPSSharedDataObserver* aObserver,
       
    35     const TUid aUid, TBool aTemporary )
       
    36     {
       
    37     CIMPSSharedDataHandler* self =
       
    38         new( ELeave ) CIMPSSharedDataHandler( aObserver,
       
    39                                               aUid,
       
    40                                               aTemporary );
       
    41     CleanupStack::PushL( self );
       
    42     self->ConstructL();
       
    43     CleanupStack::Pop();
       
    44     return self;
       
    45     }
       
    46 
       
    47 
       
    48 // Symbian OS default constructor can leave.
       
    49 void CIMPSSharedDataHandler::ConstructL()
       
    50     {
       
    51     iSharedDataClient = this;
       
    52     // assign
       
    53     User::LeaveIfError( iSharedDataClient.Connect() );
       
    54     if ( iTemporary )
       
    55         {
       
    56         User::LeaveIfError( iSharedDataClient.AssignToTemporaryFile( iUid ) );
       
    57         }
       
    58     else
       
    59         {
       
    60         User::LeaveIfError( iSharedDataClient.Assign( iUid ) );
       
    61         }
       
    62 
       
    63     AppendKeyPairsL();
       
    64     }
       
    65 
       
    66 // -----------------------------------------------------------------------------
       
    67 // CIMPSSharedDataHandler::SubscribeChange( const TUid aUid, const TIMPSSharedKeys aKey )
       
    68 //
       
    69 // (other items were commented in a header).
       
    70 // -----------------------------------------------------------------------------
       
    71 //
       
    72 TInt CIMPSSharedDataHandler::SubscribeChange( const TUid aUid, const TIMPSSharedKeys aKey )
       
    73     {
       
    74     TBuf<KMaxKeyName> key;
       
    75     MapKeysToSharedData( aKey, key );
       
    76     return iSharedDataClient.NotifyChange( aUid, &key );
       
    77     }
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // CIMPSSharedDataHandler::SubscribeSet( const TUid aUid, const TIMPSSharedKeys aKey )
       
    81 //
       
    82 // (other items were commented in a header).
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 TInt CIMPSSharedDataHandler::SubscribeSet( const TUid aUid, const TIMPSSharedKeys aKey )
       
    86     {
       
    87     TBuf<KMaxKeyName> key;
       
    88     MapKeysToSharedData( aKey, key );
       
    89     return iSharedDataClient.NotifySet( aUid, &key );
       
    90     }
       
    91 
       
    92 // -----------------------------------------------------------------------------
       
    93 // CIMPSSharedDataHandler::UnSubscribe( const TUid aUid, const TIMPSSharedKeys aKey )
       
    94 //
       
    95 // (other items were commented in a header).
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 void CIMPSSharedDataHandler::UnSubscribe( const TUid aUid, const TIMPSSharedKeys aKey )
       
    99     {
       
   100     TBuf<KMaxKeyName> key;
       
   101     MapKeysToSharedData( aKey, key );
       
   102     iSharedDataClient.CancelNotify( aUid, &key );
       
   103     }
       
   104 
       
   105 // -----------------------------------------------------------------------------
       
   106 // CIMPSSharedDataHandler::GetStringKey( const TIMPSSharedKeys aKey, TDes& aValue )
       
   107 //
       
   108 // (other items were commented in a header).
       
   109 // -----------------------------------------------------------------------------
       
   110 //
       
   111 TInt CIMPSSharedDataHandler::GetStringKey( const TIMPSSharedKeys aKey, TDes& aValue )
       
   112     {
       
   113     TBuf<KMaxKeyName> key;
       
   114     MapKeysToSharedData( aKey, key );
       
   115     return iSharedDataClient.GetString( key, aValue );
       
   116     }
       
   117 
       
   118 // -----------------------------------------------------------------------------
       
   119 // CIMPSSharedDataHandler::GetIntKey( const TDesC& aKey, TInt& aValue )
       
   120 //
       
   121 // (other items were commented in a header).
       
   122 // -----------------------------------------------------------------------------
       
   123 //
       
   124 TInt CIMPSSharedDataHandler::GetIntKey( const TIMPSSharedKeys aKey, TInt& aValue )
       
   125     {
       
   126     TBuf<KMaxKeyName> key;
       
   127     MapKeysToSharedData( aKey, key );
       
   128     return iSharedDataClient.GetInt( key, aValue );
       
   129     }
       
   130 
       
   131 // -----------------------------------------------------------------------------
       
   132 // CIMPSSharedDataHandler::SetStringKey( const TIMPSSharedKeys aKey, const TDesC& aValue )
       
   133 //
       
   134 // (other items were commented in a header).
       
   135 // -----------------------------------------------------------------------------
       
   136 //
       
   137 TInt CIMPSSharedDataHandler::SetStringKey( const TIMPSSharedKeys aKey, const TDesC& aValue )
       
   138     {
       
   139     TBuf<KMaxKeyName> key;
       
   140     MapKeysToSharedData( aKey, key );
       
   141     return iSharedDataClient.SetString( key, aValue );
       
   142     }
       
   143 
       
   144 // -----------------------------------------------------------------------------
       
   145 // CIMPSSharedDataHandler::SetIntKey( const TIMPSSharedKeys aKey, TInt aValue )
       
   146 //
       
   147 // (other items were commented in a header).
       
   148 // -----------------------------------------------------------------------------
       
   149 //
       
   150 TInt CIMPSSharedDataHandler::SetIntKey( const TIMPSSharedKeys aKey, TInt aValue )
       
   151     {
       
   152     TRAPD( err, DoSetIntKeyL( aKey, aValue ) );
       
   153     return err;
       
   154     }
       
   155 
       
   156 // -----------------------------------------------------------------------------
       
   157 // CIMPSSharedDataHandler::DoSetIntKeyL( const TIMPSSharedKeys aKey, TInt aValue )
       
   158 //
       
   159 // (other items were commented in a header).
       
   160 // -----------------------------------------------------------------------------
       
   161 //
       
   162 void CIMPSSharedDataHandler::DoSetIntKeyL( const TIMPSSharedKeys aKey, TInt aValue )
       
   163     {
       
   164     TBuf<KMaxKeyName> key;
       
   165     MapKeysToSharedData( aKey, key );
       
   166 
       
   167     User::LeaveIfError( iSharedDataClient.SetInt( key, aValue ) );
       
   168     }
       
   169 
       
   170 
       
   171 // ---------------------------------------------------------
       
   172 // CIMPSSharedDataHandler::HandleNotifyL()
       
   173 //
       
   174 // (other items were commented in a header).
       
   175 // ---------------------------------------------------------
       
   176 //
       
   177 void CIMPSSharedDataHandler::HandleNotifyL( const TUid aUid,
       
   178                                             const TDesC& aKey,
       
   179                                             const TDesC& /* aValue */ )
       
   180     {
       
   181     if ( iObserver )
       
   182         {
       
   183         TIMPSSharedKeys keyToClient;
       
   184         MapKeysToClient( keyToClient, aKey );
       
   185         if ( iTemporary )
       
   186             {
       
   187             iObserver->HandleTemporaryKeyNotifyL( aUid, keyToClient );
       
   188             }
       
   189         else
       
   190             {
       
   191             iObserver->HandlePermanentKeyNotifyL( aUid, keyToClient );
       
   192             }
       
   193         }
       
   194     }
       
   195 
       
   196 // -----------------------------------------------------------------------------
       
   197 // CIMPSSharedDataHandler::Signal( const TDesC& aKey )
       
   198 //
       
   199 // (other items were commented in a header).
       
   200 // -----------------------------------------------------------------------------
       
   201 //
       
   202 TInt CIMPSSharedDataHandler::Signal( const TIMPSSharedKeys aKey )
       
   203     {
       
   204     TRAPD( err, DoSignalL( aKey ) );
       
   205     return err;
       
   206     }
       
   207 
       
   208 
       
   209 // -----------------------------------------------------------------------------
       
   210 // CIMPSSharedDataHandler::DoSignalL( const TDesC& aKey )
       
   211 //
       
   212 // (other items were commented in a header).
       
   213 // -----------------------------------------------------------------------------
       
   214 //
       
   215 void CIMPSSharedDataHandler::DoSignalL( const TIMPSSharedKeys aKey )
       
   216     {
       
   217     TBuf<KMaxKeyName> key;
       
   218     MapKeysToSharedData( aKey, key );
       
   219 
       
   220     TInt current( 0 );
       
   221     TInt err = iSharedDataClient.GetInt( key, current );
       
   222     if ( err == KErrNotFound )
       
   223         {
       
   224         // we don't need to worry about this since if the key is not found
       
   225         // the correct value for the current value is 0
       
   226         err = KErrNone;
       
   227         }
       
   228     User::LeaveIfError( err );
       
   229     User::LeaveIfError( iSharedDataClient.SetInt( key, current + 1 ) );
       
   230     }
       
   231 
       
   232 
       
   233 // -----------------------------------------------------------------------------
       
   234 // CIMPSSharedDataHandler::CancelSignal( const TDesC& aKey )
       
   235 //
       
   236 // (other items were commented in a header).
       
   237 // -----------------------------------------------------------------------------
       
   238 //
       
   239 TInt CIMPSSharedDataHandler::CancelSignal( const TIMPSSharedKeys aKey )
       
   240     {
       
   241     TRAPD( err, DoCancelSignalL( aKey ) );
       
   242     return err;
       
   243     }
       
   244 
       
   245 
       
   246 // -----------------------------------------------------------------------------
       
   247 // CIMPSSharedDataHandler::DoCancelSignalL( const TDesC& aKey )
       
   248 //
       
   249 // (other items were commented in a header).
       
   250 // -----------------------------------------------------------------------------
       
   251 //
       
   252 void CIMPSSharedDataHandler::DoCancelSignalL( const TIMPSSharedKeys aKey )
       
   253     {
       
   254     TBuf<KMaxKeyName> key;
       
   255     MapKeysToSharedData( aKey, key );
       
   256 
       
   257     TInt current( 0 );
       
   258     TInt err = iSharedDataClient.GetInt( key, current );
       
   259     if ( err == KErrNotFound )
       
   260         {
       
   261         // we don't need to worry about this since if the key is not found
       
   262         // the correct value for the current value is 0
       
   263         err = KErrNone;
       
   264         }
       
   265     User::LeaveIfError( err );
       
   266     User::LeaveIfError( iSharedDataClient.SetInt( key, current - 1 ) );
       
   267     }
       
   268 
       
   269 // -----------------------------------------------------------------------------
       
   270 // CIMPSSharedDataHandler::ConvertSharedDataKey( const TDesC& aSrc, TIMPSSharedKeys& aKey )
       
   271 //
       
   272 // (other items were commented in a header).
       
   273 // -----------------------------------------------------------------------------
       
   274 //
       
   275 TInt CIMPSSharedDataHandler::ConvertSharedDataKey( const TDesC& aSrc, TIMPSSharedKeys& aDest )
       
   276     {
       
   277     TInt err = MapKeysToClient( aDest, aSrc );
       
   278     return err;
       
   279     }
       
   280 
       
   281 
       
   282 // C++ default constructor can NOT contain any code, that
       
   283 // might leave.
       
   284 //
       
   285 CIMPSSharedDataHandler::CIMPSSharedDataHandler( MIMPSSharedDataObserver* aObserver,
       
   286                                                 const TUid aUid,
       
   287                                                 TBool aTemporary )
       
   288         : iObserver( aObserver ), iUid( aUid ), iTemporary( aTemporary )
       
   289     {
       
   290     }
       
   291 
       
   292 // Destructor
       
   293 CIMPSSharedDataHandler::~CIMPSSharedDataHandler()
       
   294     {
       
   295     iSharedDataClient.Close();
       
   296     iKeys.Close();
       
   297     }
       
   298 
       
   299 
       
   300 // ---------------------------------------------------------
       
   301 // CIMPSSharedDataHandler::MapKeysToSharedData()
       
   302 //
       
   303 // (other items were commented in a header).
       
   304 // ---------------------------------------------------------
       
   305 //
       
   306 TInt CIMPSSharedDataHandler::MapKeysToSharedData( const TIMPSSharedKeys aKey, TDes& aSharedDataKey )
       
   307     {
       
   308     // just to make sure the descriptor is empty
       
   309     aSharedDataKey.Zero();
       
   310 
       
   311     TInt count( 0 );
       
   312     for ( count = 0; count < iKeys.Count(); count++ )
       
   313         {
       
   314         if ( iKeys[count].iKeyForClient == aKey )
       
   315             {
       
   316             aSharedDataKey.Append( iKeys[count].iKeyForSharedData );
       
   317             return KErrNone;
       
   318             }
       
   319         }
       
   320     return KErrNotFound;
       
   321     }
       
   322 
       
   323 // ---------------------------------------------------------
       
   324 // CIMPSSharedDataHandler::MapKeysToClient()
       
   325 //
       
   326 // (other items were commented in a header).
       
   327 // ---------------------------------------------------------
       
   328 //
       
   329 TInt CIMPSSharedDataHandler::MapKeysToClient( TIMPSSharedKeys& aKey, const TDesC& aSharedDataKey )
       
   330     {
       
   331     TInt count( 0 );
       
   332     for ( count = 0; count < iKeys.Count(); count++ )
       
   333         {
       
   334         if ( 0 == iKeys[count].iKeyForSharedData.Compare( aSharedDataKey ) )
       
   335             {
       
   336             aKey = iKeys[count].iKeyForClient;
       
   337             return KErrNone;
       
   338             }
       
   339         }
       
   340     return KErrNotFound;
       
   341     }
       
   342 
       
   343 // ---------------------------------------------------------
       
   344 // CIMPSSharedDataHandler::DoAppendKeyPairL()
       
   345 //
       
   346 // (other items were commented in a header).
       
   347 // ---------------------------------------------------------
       
   348 //
       
   349 void CIMPSSharedDataHandler::DoAppendKeyPairL( TIMPSSharedKeys aKey, const TDesC& aSharedDataKey )
       
   350     {
       
   351     TIMPSSharedKeyPairs temp;
       
   352     temp.iKeyForSharedData.Set( aSharedDataKey );
       
   353     temp.iKeyForClient = aKey;
       
   354     User::LeaveIfError( iKeys.Append( temp ) );
       
   355     }
       
   356 
       
   357 // ---------------------------------------------------------
       
   358 // CIMPSSharedDataHandler::AppendKeyPairsL()
       
   359 //
       
   360 // (other items were commented in a header).
       
   361 // ---------------------------------------------------------
       
   362 //
       
   363 void CIMPSSharedDataHandler::AppendKeyPairsL()
       
   364     {
       
   365     // Service Settings UI
       
   366     DoAppendKeyPairL( EIMPSSharedKeysIMLogin,
       
   367                       KWVSettingsKeyNameChatLogin );
       
   368     DoAppendKeyPairL( EIMPSSharedKeysIMConnStart,
       
   369                       KWVSettingsKeyNameIMConnStart );
       
   370     DoAppendKeyPairL( EIMPSSharedKeysIMConnEnd,
       
   371                       KWVSettingsKeyNameIMConnEnd );
       
   372     DoAppendKeyPairL( EIMPSSharedKeysIMConnDays,
       
   373                       KWVSettingsKeyNameIMConnDays );
       
   374     DoAppendKeyPairL( EIMPSSharedKeysPECLogin,
       
   375                       KWVSettingsKeyNamePECLogin );
       
   376     DoAppendKeyPairL( EIMPSSharedKeysPECConnStart,
       
   377                       KWVSettingsKeyNamePECConnStart );
       
   378     DoAppendKeyPairL( EIMPSSharedKeysPECConnEnd,
       
   379                       KWVSettingsKeyNamePECConnEnd );
       
   380     DoAppendKeyPairL( EIMPSSharedKeysPECConnDays,
       
   381                       KWVSettingsKeyNamePECConnDays );
       
   382 
       
   383     // Connection UI keys
       
   384     // Connection UI Group channel keys
       
   385     DoAppendKeyPairL( EIMPSSharedKeysIMClientLoginLogoutStateChannel,
       
   386                       KIMPSSharedKeysIMClientLoginLogoutStateChannel );
       
   387     DoAppendKeyPairL( EIMPSSharedKeysIMLoginLogoutEventChannel,
       
   388                       KIMPSSharedKeysIMLoginLogoutEventChannel );
       
   389     DoAppendKeyPairL( EIMPSSharedKeysIMSSClientReqistrationChannel,
       
   390                       KIMPSSharedKeysIMSSClientReqistrationChannel );
       
   391     DoAppendKeyPairL( EIMPSSharedKeysIMGlobalOperationSignalChannel,
       
   392                       KIMPSSharedKeysIMGlobalOperationSignalChannel );
       
   393     DoAppendKeyPairL( EIMPSSharedKeysIMRemoteUiNotificationsChannel,
       
   394                       KIMPSSharedKeysIMRemoteUiNotificationsChannel );
       
   395     DoAppendKeyPairL( EIMPSSharedKeysPECClientLoginLogoutStateChannel,
       
   396                       KIMPSSharedKeysPECClientLoginLogoutStateChannel );
       
   397     DoAppendKeyPairL( EIMPSSharedKeysPECLoginLogoutEventChannel,
       
   398                       KIMPSSharedKeysPECLoginLogoutEventChannel );
       
   399     DoAppendKeyPairL( EIMPSSharedKeysPECSSClientReqistrationChannel,
       
   400                       KIMPSSharedKeysPECSSClientReqistrationChannel );
       
   401     DoAppendKeyPairL( EIMPSSharedKeysPECGlobalOperationSignalChannel,
       
   402                       KIMPSSharedKeysPECGlobalOperationSignalChannel );
       
   403     DoAppendKeyPairL( EIMPSSharedKeysPECRemoteUiNotificationsChannel,
       
   404                       KIMPSSharedKeysPECRemoteUiNotificationsChannel );
       
   405 
       
   406     DoAppendKeyPairL( EIMPSSharedKeysCommonClientLoginLogoutStateChannel,
       
   407                       KIMPSSharedKeysCommonClientLoginLogoutStateChannel );
       
   408     DoAppendKeyPairL( EIMPSSharedKeysCommonLoginLogoutEventChannel,
       
   409                       KIMPSSharedKeysCommonLoginLogoutEventChannel );
       
   410     DoAppendKeyPairL( EIMPSSharedKeysCommonSSClientReqistrationChannel,
       
   411                       KIMPSSharedKeysCommonSSClientReqistrationChannel );
       
   412     DoAppendKeyPairL( EIMPSSharedKeysCommonGlobalOperationSignalChannel,
       
   413                       KIMPSSharedKeysCommonGlobalOperationSignalChannel );
       
   414     DoAppendKeyPairL( EIMPSSharedKeysCommonRemoteUiNotificationsChannel,
       
   415                       KIMPSSharedKeysCommonRemoteUiNotificationsChannel );
       
   416     // Connection UI Group data keys
       
   417     DoAppendKeyPairL( EIMPSSharedKeysIMClientLoginLogoutStateData,
       
   418                       KIMPSSharedKeysIMClientLoginLogoutStateData );
       
   419     DoAppendKeyPairL( EIMPSSharedKeysIMLoginLogoutEventData,
       
   420                       KIMPSSharedKeysIMLoginLogoutEventData );
       
   421     DoAppendKeyPairL( EIMPSSharedKeysIMSSClientReqistrationData,
       
   422                       KIMPSSharedKeysIMSSClientReqistrationData );
       
   423     DoAppendKeyPairL( EIMPSSharedKeysIMGlobalOperationSignalData,
       
   424                       KIMPSSharedKeysIMGlobalOperationSignalData );
       
   425     DoAppendKeyPairL( EIMPSSharedKeysIMRemoteUiNotificationsData,
       
   426                       KIMPSSharedKeysIMRemoteUiNotificationsData );
       
   427     DoAppendKeyPairL( EIMPSSharedKeysPECClientLoginLogoutStateData,
       
   428                       KIMPSSharedKeysPECClientLoginLogoutStateData );
       
   429     DoAppendKeyPairL( EIMPSSharedKeysPECLoginLogoutEventData,
       
   430                       KIMPSSharedKeysPECLoginLogoutEventData );
       
   431     DoAppendKeyPairL( EIMPSSharedKeysPECSSClientReqistrationData,
       
   432                       KIMPSSharedKeysPECSSClientReqistrationData );
       
   433     DoAppendKeyPairL( EIMPSSharedKeysPECGlobalOperationSignalData,
       
   434                       KIMPSSharedKeysPECGlobalOperationSignalData );
       
   435     DoAppendKeyPairL( EIMPSSharedKeysPECRemoteUiNotificationsData,
       
   436                       KIMPSSharedKeysPECRemoteUiNotificationsData );
       
   437 
       
   438     DoAppendKeyPairL( EIMPSSharedKeysCommonClientLoginLogoutStateData,
       
   439                       KIMPSSharedKeysCommonClientLoginLogoutStateData );
       
   440     DoAppendKeyPairL( EIMPSSharedKeysCommonLoginLogoutEventData,
       
   441                       KIMPSSharedKeysCommonLoginLogoutEventData );
       
   442     DoAppendKeyPairL( EIMPSSharedKeysCommonSSClientReqistrationData,
       
   443                       KIMPSSharedKeysCommonSSClientReqistrationData );
       
   444     DoAppendKeyPairL( EIMPSSharedKeysCommonGlobalOperationSignalData,
       
   445                       KIMPSSharedKeysCommonGlobalOperationSignalData );
       
   446     DoAppendKeyPairL( EIMPSSharedKeysCommonRemoteUiNotificationsData,
       
   447                       KIMPSSharedKeysCommonRemoteUiNotificationsData );
       
   448 
       
   449     // Connection UI Global channel keys
       
   450     DoAppendKeyPairL( EIMPSSharedKeysIMGlobalChannel,
       
   451                       KIMPSSharedKeysIMGlobalChannel );
       
   452     DoAppendKeyPairL( EIMPSSharedKeysPECGlobalChannel,
       
   453                       KIMPSSharedKeysPECGlobalChannel );
       
   454 
       
   455     // Connection UI Global data keys
       
   456     DoAppendKeyPairL( EIMPSSharedKeysIMGlobalData,
       
   457                       KIMPSSharedKeysIMGlobalData );
       
   458     DoAppendKeyPairL( EIMPSSharedKeysPECGlobalData,
       
   459                       KIMPSSharedKeysPECGlobalData );
       
   460 
       
   461     // Connection UI Permanent global data key
       
   462     DoAppendKeyPairL( EIMPSSharedKeysPermanentGlobalChannel,
       
   463                       KIMPSSharedKeysPermanentGlobalChannel );
       
   464     DoAppendKeyPairL( EIMPSSharedKeysPermanentGlobalData,
       
   465                       KIMPSSharedKeysPermanentGlobalData );
       
   466 
       
   467     DoAppendKeyPairL( EIMPSSharedKeysIMPresenceAuthSettingKey,
       
   468                       KIPMSSharedKeysIMPresenceAuthSettingKey );
       
   469 
       
   470     // Profile engines key
       
   471     DoAppendKeyPairL( EIMPSSharedKeysProEngAllowUpdatePresence,
       
   472                       KProEngAllowUpdatePresence );
       
   473 
       
   474     // Presence UI keys
       
   475     DoAppendKeyPairL( EIMPSSharedKeysPECAppKeyNamePublishing,
       
   476                       KPECAppKeyNamePublishing );
       
   477 
       
   478     // Service settings login type change notifier key
       
   479     DoAppendKeyPairL( EIMPSSharedKeysServSettLoginTypeChangedPEC,
       
   480                       KIMPSSharedKeysServiceSettingsLoginTypesChangedPEC );
       
   481     // Service settings login type change notifier key
       
   482     DoAppendKeyPairL( EIMPSSharedKeysServSettLoginTypeChangedIM,
       
   483                       KIMPSSharedKeysServiceSettingsLoginTypesChangedIM );
       
   484 
       
   485     // Service settings schedule change notifier key
       
   486     DoAppendKeyPairL( EIMPSSharedKeysServSettScheduleChangedPEC,
       
   487                       KIMPSSharedKeysServiceSettingsScheduleChangedPEC );
       
   488     // Service settings schedule change notifier key
       
   489     DoAppendKeyPairL( EIMPSSharedKeysServSettScheduleChangedIM,
       
   490                       KIMPSSharedKeysServiceSettingsScheduleChangedIM );
       
   491     }
       
   492 
       
   493 //  End of File