80
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef __CIMAPUPDATEFLAGOPERATION_H__
|
|
20 |
#define __CIMAPUPDATEFLAGOPERATION_H__
|
|
21 |
|
|
22 |
#include "cimapcompoundbase.h"
|
|
23 |
#include "cimapsession.h"
|
|
24 |
#include "cimapsessionconsts.h"
|
|
25 |
#include "cimaplogger.h"
|
|
26 |
#include "imappaniccodes.h"
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
/**
|
|
32 |
Sends updated Read/unread mail status to server
|
|
33 |
|
|
34 |
@internalTechnology
|
|
35 |
@released
|
|
36 |
*/
|
|
37 |
NONSHARABLE_CLASS (CImapUpdateFlagOperation) : public CImapCompoundBase
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
~CImapUpdateFlagOperation();
|
|
41 |
|
|
42 |
static CImapUpdateFlagOperation* NewL(CImapSyncManager& aSyncManager,
|
|
43 |
CMsvServerEntry& aServerEntry,
|
|
44 |
CImapSettings& aImapSettings
|
|
45 |
);
|
|
46 |
static CImapUpdateFlagOperation* NewL(CImapSyncManager& aSyncManager,
|
|
47 |
CMsvServerEntry& aServerEntry,
|
|
48 |
CImapSettings& aImapSettings,
|
|
49 |
const CMsvEntrySelection& aSourceSel,
|
|
50 |
TBool aFlagChanged
|
|
51 |
);
|
|
52 |
virtual void StartOperation(TRequestStatus& aStatus, CImapSession& aSession);
|
|
53 |
|
|
54 |
//////////// virtual void StartOperation(TRequestStatus& aStatus);//
|
|
55 |
virtual void Progress(TImap4CompoundProgress& aCompoundProgress);
|
|
56 |
// Support for Bearer Mobility
|
|
57 |
virtual void ResumeOperationL(TRequestStatus& aStatus, CImapSession& aSession);
|
|
58 |
|
|
59 |
private:
|
|
60 |
CImapUpdateFlagOperation(CImapSyncManager& aSyncManager,
|
|
61 |
CMsvServerEntry& aServerEntry,
|
|
62 |
CImapSettings& aImapSettings
|
|
63 |
);
|
|
64 |
void ConstructL();
|
|
65 |
void ConstructL(const CMsvEntrySelection& aSourceSel,TBool aFlagChanged);
|
|
66 |
|
|
67 |
TBool DoRunLoopL();
|
|
68 |
void DoCancel();
|
|
69 |
|
|
70 |
virtual TInt ProcessNegativeServerResponse();
|
|
71 |
|
|
72 |
private:
|
|
73 |
|
|
74 |
RArray<TUint> iMessageUids;
|
|
75 |
|
|
76 |
RArrayMessageFlagInfo iFlagInfoResponseArray;
|
|
77 |
|
|
78 |
CMsvEntrySelection* iSourceSel;
|
|
79 |
TBool iMarkFlag;
|
|
80 |
TBool iEntrySelection;
|
|
81 |
TInt iProgressMsgsToDo;
|
|
82 |
TInt iProgressMsgsDone;
|
|
83 |
|
|
84 |
};
|
|
85 |
|
|
86 |
#endif // __CIMAPUPDATEFLAGOPERATION_H__
|