1 /* |
1 /* |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
43 * |
42 * |
44 * |
43 * |
45 * @lib None |
44 * @lib None |
46 * @since S60 3.2 |
45 * @since S60 3.2 |
47 */ |
46 */ |
48 NONSHARABLE_CLASS(COutOfDiskGlobalNote) : public MHbDeviceMessageBoxObserver |
47 NONSHARABLE_CLASS(COutOfDiskGlobalNote) : public CActive |
49 { |
48 { |
50 public: |
49 public: |
51 COutOfDiskGlobalNote( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs ); |
50 COutOfDiskGlobalNote( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs ); |
52 static COutOfDiskGlobalNote* NewL( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs ); |
51 static COutOfDiskGlobalNote* NewL( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs ); |
53 ~COutOfDiskGlobalNote(); |
52 ~COutOfDiskGlobalNote(); |
54 void DisplayL(const TDesC& aMessage); |
53 void DisplayL(const TDesC& aMessage); |
55 void ShowGlobalQueryL(TInt aStatus, TInt aDrive); |
54 void ShowGlobalQueryL(TInt aStatus, TInt aDrive); |
|
55 void CancelNoteL(); |
56 TBool NoteOnDisplay(); |
56 TBool NoteOnDisplay(); |
57 TNoteInfo GetNoteInfo(); |
57 TNoteInfo GetNoteInfo(); |
58 |
|
59 void MessageBoxClosed(const CHbDeviceMessageBoxSymbian* aMessageBox, |
|
60 CHbDeviceMessageBoxSymbian::TButtonId aButton); |
|
61 |
|
62 private: |
58 private: |
63 void ConstructL(); |
59 void ConstructL(); |
64 HBufC* FormatStringL(const TDesC& aSource, const MDesCArray& aStrings); |
60 HBufC* FormatStringL(const TDesC& aSource, const MDesCArray& aStrings); |
65 |
61 private: // From CActive |
|
62 void DoCancel(); |
|
63 void RunL(); |
66 private: // Data |
64 private: // Data |
67 COutOfDiskMonitor* iOutOfDiskMonitor; //uses |
65 COutOfDiskMonitor* iOutOfDiskMonitor; //uses |
68 RFs& iFs; |
66 RFs& iFs; |
|
67 CAknGlobalNote* iQuery; |
69 RResourceFile iOODResourceFile; |
68 RResourceFile iOODResourceFile; |
70 TNoteInfo iNoteInfo; |
69 TNoteInfo iNoteInfo; |
71 CHbDeviceMessageBoxSymbian *iNote; |
|
72 }; |
70 }; |
73 #endif //__OUTOFDISKGLOBALNOTE_H__ |
71 #endif //__OUTOFDISKGLOBALNOTE_H__ |