emailcontacts/contactactionservice/src/cfscactionutils.cpp
changeset 4 e7aa27f58ae1
parent 0 8466d47a6819
child 10 f5907b1a1053
equal deleted inserted replaced
3:a4d6f1ea0416 4:e7aa27f58ae1
    71 #include "CFscAddressSelect.h"
    71 #include "CFscAddressSelect.h"
    72 
    72 
    73 
    73 
    74 // CONSTANTS DECLARATIONS
    74 // CONSTANTS DECLARATIONS
    75 const TUid KPoCOmaServerUid = 
    75 const TUid KPoCOmaServerUid = 
    76 	{ 
    76     { 
    77 	0x102071C4 
    77     0x102071C4 
    78 	};
    78     };
    79 
    79 
    80 // Unnamed namespace
    80 // Unnamed namespace
    81 namespace {
    81 namespace {
    82 // These values come from cfsccallpluginimpl.cpp 
    82 // These values come from cfsccallpluginimpl.cpp 
    83 const TInt KMaxConfIdLen = 32;
    83 const TInt KMaxConfIdLen = 32;
  1129     TRAPD( err, cenRep = CRepository::NewL( KPoCOmaServerUid ) ) ;
  1129     TRAPD( err, cenRep = CRepository::NewL( KPoCOmaServerUid ) ) ;
  1130     if ( err == KErrNone )
  1130     if ( err == KErrNone )
  1131         {
  1131         {
  1132         TInt settingsId;
  1132         TInt settingsId;
  1133         TInt err = cenRep->Get( KPoCDefaultSettings, settingsId );
  1133         TInt err = cenRep->Get( KPoCDefaultSettings, settingsId );
  1134 		if ( err == KErrNone )
  1134         if ( err == KErrNone )
  1135 			{
  1135             {
  1136 			result = (settingsId != KErrNotFound );
  1136             result = (settingsId != KErrNotFound );
  1137 			}
  1137             }
  1138         delete cenRep;
  1138         delete cenRep;
  1139         }
  1139         }
  1140 
  1140 
  1141     return result;
  1141     return result;
  1142     }
  1142     }
  1195 //
  1195 //
  1196 TInt CFscActionUtils::ActionPriority( TUint32 aActionPriorityCrKey,
  1196 TInt CFscActionUtils::ActionPriority( TUint32 aActionPriorityCrKey,
  1197     TInt aDefaultPriority )
  1197     TInt aDefaultPriority )
  1198     {
  1198     {
  1199     FUNC_LOG;
  1199     FUNC_LOG;
  1200     TInt result;
  1200     TInt result( 0 ); // some value to escape warning
  1201     TInt error = KErrNotFound;
  1201     TInt error = KErrNotFound;
  1202     
  1202     
  1203     if ( iRep != NULL )
  1203     if ( iRep != NULL )
  1204         {
  1204         {
  1205         // Get() returns KErrNone if successful
  1205         // Get() returns KErrNone if successful