ipsservices/ipssosplugin/src/ipsplgconnectandrefreshfolderlist.cpp
branchRCL_3
changeset 11 0396474f30f5
parent 8 e1b6206813b4
child 24 d189ee25cf9d
equal deleted inserted replaced
10:f5907b1a1053 11:0396474f30f5
    73             aMailboxId,
    73             aMailboxId,
    74             aFSObserver,
    74             aFSObserver,
    75             0, // FSRequestId
    75             0, // FSRequestId
    76             EFalse), // SignallingAllowed
    76             EFalse), // SignallingAllowed
    77     iState( EIdle ),
    77     iState( EIdle ),
    78     iMailboxId( aMailboxId ),
       
    79     iSession( aSession ),
       
    80     iService( aService ),
       
    81     iOperation( NULL ),
       
    82     iTimer( NULL ),
    78     iTimer( NULL ),
    83     iMsvEntry( NULL ),
    79     iMsvEntry( NULL )
    84     iObserverRequestStatus( aObserverRequestStatus )
    80     {
    85     {
    81     FUNC_LOG;
    86     FUNC_LOG;
    82     iService = aService;
    87     }
    83     }
    88 
    84 
    89 // ----------------------------------------------------------------------------
    85 // ----------------------------------------------------------------------------
    90 // ----------------------------------------------------------------------------
    86 // ----------------------------------------------------------------------------
    91 void CIpsPlgConnectAndRefreshFolderList::ConstructL( 
    87 void CIpsPlgConnectAndRefreshFolderList::ConstructL( 
    94     FUNC_LOG;
    90     FUNC_LOG;
    95     BaseConstructL( KSenduiMtmImap4Uid );
    91     BaseConstructL( KSenduiMtmImap4Uid );
    96     iMsvEntry = aMsvEntry.CopyL();    
    92     iMsvEntry = aMsvEntry.CopyL();    
    97     iState = EStartConnect;
    93     iState = EStartConnect;
    98     DoRunL();
    94     DoRunL();
    99     
       
   100     }
    95     }
   101 
    96 
   102 // ----------------------------------------------------------------------------
    97 // ----------------------------------------------------------------------------
   103 // ----------------------------------------------------------------------------
    98 // ----------------------------------------------------------------------------
   104 CIpsPlgConnectAndRefreshFolderList::~CIpsPlgConnectAndRefreshFolderList()
    99 CIpsPlgConnectAndRefreshFolderList::~CIpsPlgConnectAndRefreshFolderList()
   105     {
   100     {
   106     FUNC_LOG;
   101     FUNC_LOG;
   107     Cancel();
   102     Cancel();
   108     delete iMsvEntry;
   103     delete iMsvEntry;
   109     delete iOperation;
       
   110     }
   104     }
   111 
   105 
   112 // ---------------------------------------------------------------------------
   106 // ---------------------------------------------------------------------------
   113 // ---------------------------------------------------------------------------
   107 // ---------------------------------------------------------------------------
   114 //
   108 //
   222         case ERefreshing:
   216         case ERefreshing:
   223             //  We have successfully completed refreshing the folder list
   217             //  We have successfully completed refreshing the folder list
   224             delete iOperation;
   218             delete iOperation;
   225             iOperation = NULL;
   219             iOperation = NULL;
   226             iOperation = CIpsPlgDisconnectOp::NewL( 
   220             iOperation = CIpsPlgDisconnectOp::NewL( 
   227                             iSession, 
   221             		        iMsvSession, 
   228                             iStatus, 
   222                             iStatus, 
   229                             iService, 
   223                             iService, 
   230                             *iTimer,
   224                             *iTimer,
   231                             iMailboxId, 
   225                             iFSMailboxId, 
   232                             *observer, 
   226                             *observer, 
   233                             NULL );
   227                             NULL );
   234             iState = EDisconnecting;
   228             iState = EDisconnecting;
   235             SetActive();
   229             SetActive();
   236             break;
   230             break;
   266 void CIpsPlgConnectAndRefreshFolderList::DisplayLoginFailedDialogL()
   260 void CIpsPlgConnectAndRefreshFolderList::DisplayLoginFailedDialogL()
   267     {
   261     {
   268     // Get the TMsvEntry for the mailbox, which we use to get its name.
   262     // Get the TMsvEntry for the mailbox, which we use to get its name.
   269     TMsvId serviceId;
   263     TMsvId serviceId;
   270     TMsvEntry mailboxServiceEntry;
   264     TMsvEntry mailboxServiceEntry;
   271     User::LeaveIfError( iSession.GetEntry( iMailboxId.Id(), serviceId, mailboxServiceEntry ) );
   265     User::LeaveIfError( iMsvSession.GetEntry( iFSMailboxId.Id(), serviceId, mailboxServiceEntry ) );
   272 
   266 
   273     // Load/construct the strings for the dialog.
   267     // Load/construct the strings for the dialog.
   274     HBufC* headerText( NULL );
   268     HBufC* headerText( NULL );
   275     headerText = StringLoader::LoadLC( R_FS_MSERVER_MAILBOX_NAME, mailboxServiceEntry.iDetails );
   269     headerText = StringLoader::LoadLC( R_FS_MSERVER_MAILBOX_NAME, mailboxServiceEntry.iDetails );
   276     HBufC* text( NULL );
   270     HBufC* text( NULL );