aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/async/imap/MCIMAPFetchFoldersOperation.h
blob: ebc49ca889bdc8f6015fcdc870c50f41b16365b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
//  MCIMAPFetchFoldersOperation.h
//  mailcore2
//
//  Created by DINH Viêt Hoà on 1/12/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#ifndef __MAILCORE_MCIMAPFETCHFOLDERSOPERATION_H_

#define __MAILCORE_MCIMAPFETCHFOLDERSOPERATION_H_

#include <MailCore/MCBaseTypes.h>
#include <MailCore/MCIMAPOperation.h>

#ifdef __cplusplus

namespace mailcore {
    
    class IMAPFetchFoldersOperation : public IMAPOperation {
    public:
        IMAPFetchFoldersOperation();
        virtual ~IMAPFetchFoldersOperation();
        
        virtual void setFetchSubscribedEnabled(bool enabled);
        virtual bool isFetchSubscribedEnabled();
        
        // Result.
        virtual Array * /* IMAPFolder */ folders();
        
    public: // subclass behavior
        virtual void main();
        
    private:
        String * mFolder;
        bool mFetchSubscribedEnabled;
        Array * mFolders;
        void setDelimiterDataOnMainThread(char * delimiterData);
        
    };
}

#endif

#endif