ipsservices/ipssosplugin/inc/ipsplgpop3plugin.h
changeset 0 8466d47a6819
child 18 578830873419
child 63 d189ee25cf9d
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: This file defines class CIpsPlgPop3Plugin.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IPSPLGPOP3PLUGIN_H
       
    20 #define IPSPLGPOP3PLUGIN_H
       
    21 
       
    22 #include "ipsplgsosbaseplugin.h"
       
    23 
       
    24 class CPop3ClientMtm;
       
    25 class CIpsPlgPop3Plugin : public CIpsPlgSosBasePlugin
       
    26 {
       
    27 public:
       
    28 
       
    29 	IMPORT_C static CIpsPlgPop3Plugin* NewL();
       
    30     IMPORT_C static CIpsPlgPop3Plugin* NewLC();
       
    31 
       
    32     /**
       
    33     * Destructor.
       
    34     */
       
    35     virtual ~CIpsPlgPop3Plugin();
       
    36     
       
    37 public: // Methods
       
    38 
       
    39     void PopulateNewMailL( 
       
    40         const TFSMailMsgId& aMailboxId , 
       
    41         TMsvId aNewId , 
       
    42         TMsvId aParentId );
       
    43 
       
    44 public: // From CFSMailPlugin
       
    45 
       
    46     TBool MailboxHasCapabilityL(
       
    47         TFSMailBoxCapabilities aCapability,
       
    48         TFSMailMsgId aMailBoxId );
       
    49 
       
    50     TInt RefreshNowL( );
       
    51 
       
    52     void RefreshNowL(
       
    53         const TFSMailMsgId& aMailBoxId,
       
    54         MFSMailRequestObserver& aOperationObserver,
       
    55         TInt aRequestId );
       
    56 
       
    57     void ListFoldersL(
       
    58         const TFSMailMsgId& aMailBoxId,
       
    59         const TFSMailMsgId& aFolderId,
       
    60         RPointerArray<CFSMailFolder>& aFolderList );
       
    61 
       
    62     void ListFoldersL(
       
    63         const TFSMailMsgId& aMailBoxId,
       
    64         RPointerArray<CFSMailFolder>& aFolderList );
       
    65 
       
    66     TFSMailMsgId GetStandardFolderIdL(
       
    67         const TFSMailMsgId& aMailBoxId,
       
    68         const TFSFolderType aFolderType );
       
    69 
       
    70     void FetchMessagesL(
       
    71         const TFSMailMsgId& aMailBoxId,
       
    72         const TFSMailMsgId& aFolderId,
       
    73         const RArray<TFSMailMsgId>& aMessageIds,
       
    74         TFSMailDetails aDetails,
       
    75         MFSMailRequestObserver& aObserver,
       
    76         TInt aRequestId );
       
    77 
       
    78     void FetchMessagesPartsL(
       
    79         const RArray<TFSMailMsgId>& aMessagePartIds,
       
    80         MFSMailRequestObserver& aOperationObserver,
       
    81         const TInt aRequestId );
       
    82 
       
    83     void FetchMessagePartsL(
       
    84         const TFSMailMsgId& aMailBoxId,
       
    85         const TFSMailMsgId& aFolderId,
       
    86         const TFSMailMsgId& aMessageId,
       
    87         const RArray<TFSMailMsgId>& aMessagePartIds,
       
    88         MFSMailRequestObserver& aOperationObserver,
       
    89         const TInt aRequestId,
       
    90         const TUint aPreferredByteCount);
       
    91  
       
    92     
       
    93 protected:
       
    94 
       
    95     /**
       
    96      *
       
    97      */
       
    98     void HandleOpCompletedL(
       
    99         CIpsPlgSingleOpWatcher& aOpWatcher,
       
   100         TInt aCompletionCode );
       
   101     
       
   102 private:
       
   103 
       
   104     /**
       
   105      *
       
   106      */
       
   107     CIpsPlgPop3Plugin( );
       
   108 
       
   109     /**
       
   110      *
       
   111      */
       
   112     void ConstructL( );
       
   113 
       
   114 private:
       
   115     CPop3ClientMtm* iClientMtm;
       
   116   };
       
   117 
       
   118 #endif /* IPSPLGPOP3PLUGIN_H */
       
   119 
       
   120 // End of File