emailservices/emailclientapi/inc/messageiterator.h
branchRCL_3
changeset 24 d189ee25cf9d
parent 8 e1b6206813b4
child 25 3533d4323edc
equal deleted inserted replaced
23:dcf0eedfc1a3 24:d189ee25cf9d
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    18 #ifndef CMESSAGEITERATOR_H
    18 #ifndef CMESSAGEITERATOR_H
    19 #define CMESSAGEITERATOR_H
    19 #define CMESSAGEITERATOR_H
    20                                                                              
    20                                                                              
    21 #include <mmessageiterator.h>                                                                             
    21 #include <mmessageiterator.h>                                                                             
    22 #include "emailapidefs.h"
    22 #include "emailapidefs.h"
    23 #include "cfsmailcommon.h"
    23 #include "CFSMailCommon.h"
    24 
    24 
    25 using namespace EmailInterface;
    25 using namespace EmailInterface;
    26 
    26 
    27 class MFSMailIterator;
    27 class MFSMailIterator;
    28 class CPluginData;
    28 class CPluginData;
    52     
    52     
    53     void ConstructL();
    53     void ConstructL();
    54     
    54     
    55 public: // from MEmailInterface              
    55 public: // from MEmailInterface              
    56 
    56 
    57     virtual TEmailTypeId InterfaceId() const;
    57     TEmailTypeId InterfaceId() const;
    58 
    58 
    59     virtual void Release();
    59     void Release();
    60     
    60     
    61 public: // from MMessageIterator
    61 public: // from MMessageIterator
    62 
    62 
    63     /** @see MMessageIterator */
    63     /** @see MMessageIterator */
    64     virtual MEmailMessage* NextL();
    64     MEmailMessage* NextL();
    65     
    65     
    66     /** @see MMessageIterator 
    66     /** @see MMessageIterator 
    67      (not implemented) */
    67      (not implemented) */
    68     
    68     
    69     virtual MEmailMessage* PreviousL();
    69     MEmailMessage* PreviousL();
    70     
    70     
    71     virtual TUint Count() const;
    71     TUint Count() const;
    72         
    72         
    73 
    73 
    74 private:   
    74 private:   
    75     // Reads next chunk of messages from protocol plugin
    75     // Reads next chunk of messages from protocol plugin
    76     TBool ReadNextChunkL();
    76     TBool ReadNextChunkL();
   130     TBool iHasMorePrevItems;
   130     TBool iHasMorePrevItems;
   131 };
   131 };
   132 
   132 
   133 #endif // CMESSAGEITERATOR_H
   133 #endif // CMESSAGEITERATOR_H
   134 
   134 
   135 // End of file.
   135 // End of file