diff -r 3dcb815346df -r 4096754ee773 localconnectivityservice/dun/utils/inc/DunNoteHandler.h --- a/localconnectivityservice/dun/utils/inc/DunNoteHandler.h Thu Aug 19 10:46:39 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,140 +0,0 @@ -/* -* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Manages note showing in UI -* -*/ - - -#ifndef C_CDUNNOTEHANDLER_H -#define C_CDUNNOTEHANDLER_H - -#include -#include -#include -#include -#include "DunTransporter.h" - -/** - * Class for managing note showing in UI - * - * @lib dunutils.lib - * @since S60 v3.2 - */ -NONSHARABLE_CLASS( CDunNoteHandler ) : public CActive - { - -public: - - /** - * Two-phased constructor. - * @return Instance of self - */ - static CDunNoteHandler* NewL(); - - /** - * Destructor. - */ - virtual ~CDunNoteHandler(); - - /** - * Resets data to initial values - * - * @since S60 3.2 - * @return None - */ - void ResetData(); - - /** - * Issues request to start showing UI note - * - * @since S60 3.2 - * @return Symbian error code on error, KErrNone otherwise - */ - TInt IssueRequest(); - - /** - * Stops showing UI note - * - * @since S60 3.2 - * @return Symbian error code on error, KErrNone otherwise - */ - TInt Stop(); - -private: - - CDunNoteHandler(); - - void ConstructL(); - - /** - * Initializes this class - * - * @since S60 3.2 - * @return None - */ - void Initialize(); - - /** - * Issues request to start showing UI note - * - * @since S60 3.2 - * @return None - */ - void DoIssueRequestL(); - - /** - * Reads resource text - * - * @since S60 3.2 - * @param aResourceId Resource ID to read - * @param aUnicode Buffer containing the note string to show - * @return None - */ - void ReadResourceTextL( TInt aResourceId, HBufC16*& aUnicode ); - -// from base class CActive - - /* - * From CActive. - * Gets called when UI note dismissed - * - * @since S60 3.2 - * @return None - */ - void RunL(); - - /** - * From CActive. - * Gets called on cancel - * - * @since S60 3.2 - * @return None - */ - void DoCancel(); - -private: // data - - /** - * Note to show - */ - CAknGlobalConfirmationQuery* iNote; - - /** - * Current state of note showing: active or inactive - */ - TDunState iNoteState; - - }; - -#endif // C_CDUNNOTEHANDLER_H