equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2006 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: State machine for fetching data without caching it permanently |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_RSFW_FETCHDATASTATEMACHINE_H |
|
19 #define C_RSFW_FETCHDATASTATEMACHINE_H |
|
20 |
|
21 #include "rsfwwaitnotestatemachine.h" |
|
22 |
|
23 /** |
|
24 * State machine for fetching data without caching it permanently. |
|
25 * |
|
26 * Fetches data to a temporary cache file, i.e. the data |
|
27 * does not become part of the permanent cache. |
|
28 * |
|
29 */ |
|
30 class CRsfwFetchDataStateMachine : public CRsfwWaitNoteStateMachine |
|
31 { |
|
32 public: |
|
33 CRsfwFetchDataStateMachine(); |
|
34 |
|
35 public: |
|
36 // STATES |
|
37 class TFetchDataState : public CRsfwFetchDataStateMachine::TState |
|
38 { |
|
39 public: |
|
40 TFetchDataState(CRsfwFetchDataStateMachine* aOperation); |
|
41 void EnterL(); |
|
42 TState* CompleteL(); |
|
43 TState* ErrorL(TInt aCode); |
|
44 private: |
|
45 CRsfwFetchDataStateMachine* iOperation; |
|
46 }; |
|
47 public: |
|
48 TState* CompleteRequestL(TInt aError); |
|
49 |
|
50 public: |
|
51 // directory entries, when used to fetch directory contents... |
|
52 RPointerArray<CRsfwDirEnt> iDirEnts; |
|
53 // output params |
|
54 TDesC* iCacheName; |
|
55 TInt iLength; |
|
56 }; |
|
57 |
|
58 #endif // C_RSFW_FETCHDATASTATEMACHINE_H |