smartinstaller/common/globalwaitnote.h
author Santosh V Patil <santosh.v.patil@nokia.com>
Fri, 19 Feb 2010 15:03:34 +0530
branchADM
changeset 14 343c622c9f65
permissions -rw-r--r--
Contribution of bootstrap component of the Nokia Smart Installer (beta)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     1
/*
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     2
* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     3
* All rights reserved.
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     8
*
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     9
* Initial Contributors:
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    11
*
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    12
* Contributors:
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    13
*
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    14
* Description: 
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    15
*     Declaration of CGlobalWaitNoteObserver class.
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    16
*
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    17
*
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    18
*/
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    19
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    20
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    21
#include <e32base.h>
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    22
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    23
class CGlobalWaitNote : public CActive
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    24
	{
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    25
public:
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    26
	class MGlobalWaitNoteClient
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    27
	{
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    28
	public:
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    29
		virtual void WaitNoteCancelled() = 0;
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    30
	};
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    31
	static CGlobalWaitNote* NewL (MGlobalWaitNoteClient& aOwner, TBool aCancellable = ETrue);
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    32
	static CGlobalWaitNote* NewLC(MGlobalWaitNoteClient& aOwner, TBool aCancellable = ETrue);
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    33
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    34
public:
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    35
	virtual ~CGlobalWaitNote();
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    36
	void StartL(const TDesC& aText);
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    37
	void StopL();
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    38
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    39
protected:
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    40
	void ConstructL();
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    41
	void RunL() ;
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    42
	void DoCancel();
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    43
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    44
private:
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    45
   CGlobalWaitNote(MGlobalWaitNoteClient& aOwner, TBool aCancellable);
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    46
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    47
private:
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    48
	MGlobalWaitNoteClient&  iOwner;
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    49
	CAknGlobalNote*         iWaitNote;
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    50
	TInt                    iWaitNoteId;
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    51
	TBool                   iCancellable;
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    52
	TRequestStatus          iStatus;
343c622c9f65 Contribution of bootstrap component of the Nokia Smart Installer (beta)
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    53
	};