equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004-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: Active Object which actually performs the re-harvesting of the files* |
|
15 */ |
|
16 |
|
17 |
|
18 #ifndef __CREHARVESTERAO_H__ |
|
19 #define __CREHARVESTERAO_H__ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "harvesterqueue.h" |
|
23 |
|
24 class CReHarvesterAO : public CActive |
|
25 { |
|
26 public: |
|
27 |
|
28 static CReHarvesterAO* NewL(); |
|
29 static CReHarvesterAO* NewLC(); |
|
30 virtual ~CReHarvesterAO(); |
|
31 void ConstructL(); |
|
32 |
|
33 void RunL(); |
|
34 |
|
35 void DoCancel(); |
|
36 |
|
37 TInt RunError( TInt aError ); |
|
38 |
|
39 void SetHarvesterQueue( CHarvesterQueue* aQueue ); |
|
40 void AddItem( CHarvesterData* aItem ); |
|
41 void CheckItem( CHarvesterData& aItem ); |
|
42 TInt ItemsInQueue(); |
|
43 |
|
44 private: |
|
45 |
|
46 CReHarvesterAO(); |
|
47 |
|
48 private: |
|
49 CHarvesterQueue* iQueue; |
|
50 RPointerArray<CHarvesterData> iItems; |
|
51 RTimer iTimer; |
|
52 TInt iDelay; |
|
53 }; |
|
54 |
|
55 #endif //__CREHARVESTERAO_H__ |
|
56 |