messagingappbase/msgeditor/appuisrc/MsgEditorShutter.cpp
branchRCL_3
changeset 14 c6838af47512
parent 0 72b543305e3a
equal deleted inserted replaced
13:a9c7e5670d17 14:c6838af47512
   150     if ( openEditors > 0 )
   150     if ( openEditors > 0 )
   151         {
   151         {
   152         openEditors--;    
   152         openEditors--;    
   153         iOpenAppProperty.Set( openEditors );
   153         iOpenAppProperty.Set( openEditors );
   154         }
   154         }
       
   155     
       
   156     TInt standAloneEditorCnt = 0; // since only one stand alone editor can be launched
       
   157     iOpenAppStandAloneProperty.Get(KPSUidMsgEditor, KMuiuStandAloneOpenMsgEditors, standAloneEditorCnt);
       
   158 
       
   159     if(standAloneEditorCnt > 0)
       
   160         {
       
   161         standAloneEditorCnt--;
       
   162         iOpenAppStandAloneProperty.Set(KPSUidMsgEditor, KMuiuStandAloneOpenMsgEditors, standAloneEditorCnt);
       
   163         }
       
   164 
   155     iOpenAppProperty.Close();
   165     iOpenAppProperty.Close();
   156     iOpenAppStandAloneProperty.Close();
   166     iOpenAppStandAloneProperty.Close();
   157     }
   167     }
   158 
   168 
   159 // ---------------------------------------------------------
   169 // ---------------------------------------------------------
   183     TInt StandAloneEditorCnt = 0; // since only one stand alone editor can be launched
   193     TInt StandAloneEditorCnt = 0; // since only one stand alone editor can be launched
   184     TInt err = iOpenAppStandAloneProperty.Get(KPSUidMsgEditor, KMuiuStandAloneOpenMsgEditors, StandAloneEditorCnt);
   194     TInt err = iOpenAppStandAloneProperty.Get(KPSUidMsgEditor, KMuiuStandAloneOpenMsgEditors, StandAloneEditorCnt);
   185                  
   195                  
   186     if((launchtype & EMsgLaunchEditorStandAlone ) && StandAloneEditorCnt > 1 )    
   196     if((launchtype & EMsgLaunchEditorStandAlone ) && StandAloneEditorCnt > 1 )    
   187         {
   197         {
   188         StandAloneEditorCnt = 1;
   198         // Run appshutter
   189         err = iOpenAppStandAloneProperty.Set(KPSUidMsgEditor, KMuiuStandAloneOpenMsgEditors, StandAloneEditorCnt);
       
   190          // Run appshutter
       
   191         CAknEnv::RunAppShutter();
   199         CAknEnv::RunAppShutter();
   192         }
   200         }
   193     else if ( openEditors  )
   201     else if ( openEditors  )
   194         {
   202         {
   195         iStatus = KRequestPending;
   203         iStatus = KRequestPending;