commondrm/drmrightsmanagerui/src/DRMRightsMgrAppUi.cpp
changeset 49 69d8e75812b7
parent 29 3bdc3b853094
child 75 df048d343f83
equal deleted inserted replaced
48:c68061d56109 49:69d8e75812b7
    31 #include <aknnavide.h>
    31 #include <aknnavide.h>
    32 #include <AknDef.h>
    32 #include <AknDef.h>
    33 #include <barsread.h>  // for resource reader
    33 #include <barsread.h>  // for resource reader
    34 #include <centralrepository.h>
    34 #include <centralrepository.h>
    35 #include <coeutils.h>
    35 #include <coeutils.h>
       
    36 #include <eikserverapp.h>
       
    37 
    36 
    38 
    37 #include <starterclient.h>
    39 #include <starterclient.h>
    38 
    40 
    39 // character conversions
    41 // character conversions
    40 #include <utf.h>
    42 #include <utf.h>
   239 // CDRMRightsMgrAppUi::HandleCommandL
   241 // CDRMRightsMgrAppUi::HandleCommandL
   240 // ---------------------------------------------------------
   242 // ---------------------------------------------------------
   241 //
   243 //
   242 void CDRMRightsMgrAppUi::HandleCommandL( TInt aCommand )
   244 void CDRMRightsMgrAppUi::HandleCommandL( TInt aCommand )
   243     {
   245     {
   244 
   246     CEikAppServer* server = iEikonEnv->AppServer();
       
   247  
   245     switch ( aCommand )
   248     switch ( aCommand )
   246         {
   249         {
   247         case EEikCmdExit:
   250         case EEikCmdExit:
   248         case EAknSoftkeyExit:
   251         case EAknSoftkeyExit:
   249             {
   252             {
   250             Exit();
   253             Exit();
   251             break;
   254             break;
   252             }
   255             }
       
   256         case EAknSoftkeyClose:
       
   257             {
       
   258 
       
   259             if (server)
       
   260                 {
       
   261                 server->NotifyServerExit(EAknSoftkeyClose);
       
   262                 }
       
   263                 
       
   264             Exit();
       
   265             break;
       
   266             }    
   253         default:
   267         default:
   254             break;
   268             break;
   255         }
   269         }
   256     }
   270     }
   257 
   271 
  1080             if ( permissionList[i]->iParentUID )
  1094             if ( permissionList[i]->iParentUID )
  1081                 {
  1095                 {
  1082                 if ( i == 0 )
  1096                 if ( i == 0 )
  1083                     {
  1097                     {
  1084                     // No need to check if the parent UID is a duplicate
  1098                     // No need to check if the parent UID is a duplicate
  1085                     parentUidList.Append( permissionList[i]->iParentUID );
  1099                     parentUidList.AppendL ( permissionList[i]->iParentUID );
  1086                     }
  1100                     }
  1087                 else 
  1101                 else 
  1088                     {
  1102                     {
  1089                     // Check parent UID list whether we have already stored the
  1103                     // Check parent UID list whether we have already stored the
  1090                     // UID or not
  1104                     // UID or not
  1116                 }
  1130                 }
  1117                     
  1131                     
  1118             for ( k = 0; k < permissionTempList.Count(); k++ ) 
  1132             for ( k = 0; k < permissionTempList.Count(); k++ ) 
  1119                 {
  1133                 {
  1120                 // Store the pointer to the main list of permissions
  1134                 // Store the pointer to the main list of permissions
  1121                 permissionList.Append( permissionTempList[k] );
  1135                 permissionList.AppendL ( permissionTempList[k] );
  1122                 }    
  1136                 }    
  1123                     
  1137                     
  1124             // Close the temporary pointer array so that the referenced 
  1138             // Close the temporary pointer array so that the referenced 
  1125             // objects of it will not be deleted in the next round of the 
  1139             // objects of it will not be deleted in the next round of the 
  1126             // loop because the method for getting database entries deletes 
  1140             // loop because the method for getting database entries deletes