imagehandlingutilities/thumbnailmanager/thumbnailserver/inc/thumbnailmemorycardobserver.h
equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2007 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: Class to monitor when volumes are unmounted |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef THUMBNAILMEMORYCARDOBSERVER_H |
|
20 #define THUMBNAILMEMORYCARDOBSERVER_H |
|
21 |
|
22 #include "f32file.h" |
|
23 #include "thumbnailserver.h" |
|
24 |
|
25 /** |
|
26 * Class to monitor when memory card status changes |
|
27 * |
|
28 * @since S60 v5.0 |
|
29 */ |
|
30 class CThumbnailMemoryCardObserver: public CActive |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Two-phased constructor |
|
36 * |
|
37 * @since S60 v5.0 |
|
38 * @return New CThumbnailMemoryCardObserver object. |
|
39 */ |
|
40 static CThumbnailMemoryCardObserver* NewL( CThumbnailServer* aServer, RFs& aFs ); |
|
41 /** |
|
42 * Destructor |
|
43 * |
|
44 * @since S60 v5.0 |
|
45 */ |
|
46 virtual ~CThumbnailMemoryCardObserver(); |
|
47 |
|
48 private: |
|
49 void RunL(); |
|
50 void DoCancel(); |
|
51 |
|
52 void StartNotify(); |
|
53 |
|
54 /** |
|
55 * C++ default constructor |
|
56 * |
|
57 * @since S60 v5.0 |
|
58 * @return New CThumbnailMemoryCardObserver object. |
|
59 */ |
|
60 CThumbnailMemoryCardObserver( CThumbnailServer* aServer, RFs& aFs ); |
|
61 |
|
62 /** |
|
63 * Symbian 2nd phase constructor can leave. |
|
64 * |
|
65 * @since S60 v5.0 |
|
66 */ |
|
67 void ConstructL(); |
|
68 |
|
69 private: |
|
70 // Data |
|
71 CThumbnailServer* iServer; |
|
72 RFs& iFs; |
|
73 }; |
|
74 |
|
75 #endif // THUMBNAILMEMORYCARDOBSERVER_H |
|