1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2010 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". |
42 * |
43 * |
43 * |
44 * |
44 * @lib None |
45 * @lib None |
45 * @since S60 3.2 |
46 * @since S60 3.2 |
46 */ |
47 */ |
47 NONSHARABLE_CLASS(COutOfDiskGlobalNote) : public CActive |
48 NONSHARABLE_CLASS(COutOfDiskGlobalNote) : public MHbDeviceMessageBoxObserver |
48 { |
49 { |
49 public: |
50 public: |
50 COutOfDiskGlobalNote( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs ); |
51 COutOfDiskGlobalNote( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs ); |
51 static COutOfDiskGlobalNote* NewL( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs ); |
52 static COutOfDiskGlobalNote* NewL( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs ); |
52 ~COutOfDiskGlobalNote(); |
53 ~COutOfDiskGlobalNote(); |
53 void DisplayL(const TDesC& aMessage); |
54 void DisplayL(const TDesC& aMessage); |
54 void ShowGlobalQueryL(TInt aStatus, TInt aDrive); |
55 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 |
58 private: |
62 private: |
59 void ConstructL(); |
63 void ConstructL(); |
60 HBufC* FormatStringL(const TDesC& aSource, const MDesCArray& aStrings); |
64 HBufC* FormatStringL(const TDesC& aSource, const MDesCArray& aStrings); |
61 private: // From CActive |
65 |
62 void DoCancel(); |
|
63 void RunL(); |
|
64 private: // Data |
66 private: // Data |
65 COutOfDiskMonitor* iOutOfDiskMonitor; //uses |
67 COutOfDiskMonitor* iOutOfDiskMonitor; //uses |
66 RFs& iFs; |
68 RFs& iFs; |
67 CAknGlobalNote* iQuery; |
|
68 RResourceFile iOODResourceFile; |
69 RResourceFile iOODResourceFile; |
69 TNoteInfo iNoteInfo; |
70 TNoteInfo iNoteInfo; |
|
71 CHbDeviceMessageBoxSymbian *iNote; |
70 }; |
72 }; |
71 #endif //__OUTOFDISKGLOBALNOTE_H__ |
73 #endif //__OUTOFDISKGLOBALNOTE_H__ |