ipsservices/ipssosplugin/src/ipsplgdeletelocal.cpp
changeset 23 2dc6caa42ec3
parent 0 8466d47a6819
child 64 3533d4323edc
equal deleted inserted replaced
20:ecc8def7944a 23:2dc6caa42ec3
    40 // ----------------------------------------------------------------------------
    40 // ----------------------------------------------------------------------------
    41 // CIpsPlgDeleteLocal::ConstructL
    41 // CIpsPlgDeleteLocal::ConstructL
    42 // ----------------------------------------------------------------------------
    42 // ----------------------------------------------------------------------------
    43 // 
    43 // 
    44 void CIpsPlgDeleteLocal::ConstructL(
    44 void CIpsPlgDeleteLocal::ConstructL(
    45     CMsvEntrySelection& aMessageSelection )
    45     CMsvEntrySelection* aMessageSelection )
    46     {
    46     {
    47     FUNC_LOG;
    47     FUNC_LOG;
       
    48     //<qmail>
       
    49     // Start cache manager to prune messages
       
    50     //</qmail>
    48     CImCacheManager::ConstructL();
    51     CImCacheManager::ConstructL();
    49     iMessageSelection = aMessageSelection.CopyL();
    52     //<qmail>
       
    53     iMessageSelection = new (ELeave) CMsvEntrySelection();
       
    54     for ( TInt i=0; i<aMessageSelection->Count(); i++ )
       
    55         {
       
    56         iMessageSelection->AppendL( aMessageSelection->At(i) );
       
    57         }
       
    58     //</qmail>
    50     StartL( *iMessageSelection, iObserverRequestStatus );
    59     StartL( *iMessageSelection, iObserverRequestStatus );
    51     }
    60     }
    52 
    61 
    53 // ----------------------------------------------------------------------------
    62 // ----------------------------------------------------------------------------
    54 // CIpsPlgDeleteLocal::NewL
    63 // CIpsPlgDeleteLocal::NewL
    55 // ----------------------------------------------------------------------------
    64 // ----------------------------------------------------------------------------
    56 // 
    65 // 
    57 CIpsPlgDeleteLocal* CIpsPlgDeleteLocal::NewL(
    66 CIpsPlgDeleteLocal* CIpsPlgDeleteLocal::NewL(
    58     CMsvEntrySelection& aMessageSelection,
    67     CMsvEntrySelection* aMessageSelection,
    59     CMsvSession& aMsvSession,
    68     CMsvSession& aMsvSession,
    60     TRequestStatus& aObserverRequestStatus)
    69     TRequestStatus& aObserverRequestStatus)
    61     {
    70     {
    62     FUNC_LOG;
    71     FUNC_LOG;
    63     CIpsPlgDeleteLocal* self =
    72     CIpsPlgDeleteLocal* self =
    87 // ----------------------------------------------------------------------------
    96 // ----------------------------------------------------------------------------
    88 // 
    97 // 
    89 TBool CIpsPlgDeleteLocal::Filter() const
    98 TBool CIpsPlgDeleteLocal::Filter() const
    90     {
    99     {
    91     FUNC_LOG;
   100     FUNC_LOG;
    92     if ( iMessageSelection->Find( iCurrentEntry->Entry().Id() )
   101     //<qmail> 
    93         > KErrNotFound )
   102     if ( iMessageSelection->Find( 
       
   103             iCurrentEntry->Entry().Id() ) == KErrNone )
    94         {
   104         {
    95         return ETrue;
   105         return ETrue;
    96         }
   106         }
       
   107     //</qmail>
    97     return EFalse;
   108     return EFalse;
    98     }
   109     }
    99 
   110 
   100 //  End of File
   111 //  End of File
   101 
   112