emailservices/emailstore/message_store/client/src/MsgStore.cpp
branchRCL_3
changeset 64 3533d4323edc
parent 63 d189ee25cf9d
equal deleted inserted replaced
63:d189ee25cf9d 64:3533d4323edc
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 
    19 
    20 //<cmail>
    20 //<cmail>
    21 #include "MsgStore.h"
    21 #include "msgstore.h"
    22 #include "MsgStoreMailBox.h"
    22 #include "msgstoremailbox.h"
    23 #include "MsgStoreAccount.h"
    23 #include "msgstoreaccount.h"
    24 #include "MsgStoreObserver.h"
    24 #include "msgstoreobserver.h"
    25 #include "MsgStorePropertyContainer.h"
    25 #include "msgstorepropertycontainer.h"
    26 #include "MsgStorePropertyKeys.h"
    26 #include "msgstorepropertykeys.h"
    27 //</cmail>
    27 //</cmail>
    28 
    28 
    29 #include "MsgStoreSessionContext.h"
    29 #include "msgstoresessioncontext.h"
    30 #include "MsgStoreObserverHandler.h"
    30 #include "msgstoreobserverhandler.h"
    31 //<cmail>
    31 //<cmail>
    32 //#include "IsMsgStorePropertyKeys.h"
    32 //#include "IsMsgStorePropertyKeys.h"
    33 //</cmail>
    33 //</cmail>
    34 
    34 
    35 /** Creates an empty instance of this class on the heap. 
    35 /** Creates an empty instance of this class on the heap. 
   280     TMsgStoreId defaultMailboxId = KMsgStoreInvalidId;
   280     TMsgStoreId defaultMailboxId = KMsgStoreInvalidId;
   281     
   281     
   282     for ( TInt i = 0 ; i < accounts.Count() && defaultMailboxId == KMsgStoreInvalidId ; i++ )
   282     for ( TInt i = 0 ; i < accounts.Count() && defaultMailboxId == KMsgStoreInvalidId ; i++ )
   283         {
   283         {
   284         CMsgStoreMailBox* mb = OpenAccountL( *accounts[i] );
   284         CMsgStoreMailBox* mb = OpenAccountL( *accounts[i] );
   285         mailBoxes.AppendL( mb );
   285         mailBoxes.Append( mb );
   286         if ( mb->IsDefaultMailbox() )
   286         if ( mb->IsDefaultMailbox() )
   287             {
   287             {
   288             defaultMailboxId = mb->Id();
   288             defaultMailboxId = mb->Id();
   289             }
   289             }
   290         }
   290         }