uifw/AknGlobalUI/OldStyleNotif/Inc/aknsystemprogresspopup.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002-2008 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:  Plugin declaration of global progress dialog.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __AKNSYSTEMPROGRESSPOPUP_H__
       
    19 #define __AKNSYSTEMPROGRESSPOPUP_H__
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 #include <eiknotapi.h>
       
    24 #include <eikcmobs.h>
       
    25 #include <AknProgressDialog.h>
       
    26 
       
    27 class CAknProgressDialog;
       
    28 
       
    29 NONSHARABLE_CLASS(CAknGlobalProgressDialogSubject) : 
       
    30     public CBase, 
       
    31     public MEikSrvNotifierBase2, 
       
    32     public MProgressDialogCallback
       
    33 	{
       
    34 public:
       
    35 	static CAknGlobalProgressDialogSubject* NewL();
       
    36 	virtual ~CAknGlobalProgressDialogSubject();
       
    37 	
       
    38 	// From MEikSrvNotifierBase.
       
    39 	void Release();
       
    40 	TNotifierInfo RegisterL();
       
    41 	TNotifierInfo Info() const;
       
    42 	TPtrC8 StartL(const TDesC8& aBuffer);
       
    43 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    44 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
    45 	void Cancel();
       
    46 	
       
    47     // From MProgressDialogCallback.
       
    48     void DialogDismissedL(TInt aButtonId);
       
    49 
       
    50 private:
       
    51 	CAknGlobalProgressDialogSubject();
       
    52 	void ConstructL();
       
    53 
       
    54 private:
       
    55 	RMessagePtr2 iMessage;
       
    56 	const TAny* iReturnVal;
       
    57 	TBool iPending;
       
    58 	TNotifierInfo iInfo;
       
    59     HBufC* iPrompt;
       
    60     CEikProgressInfo* iProgressInfo;
       
    61     CAknProgressDialog* iDlg;
       
    62 	TBool iAppsKeySuppressed;
       
    63 	CEikonEnv* iStoredEikonEnv;
       
    64     };
       
    65 
       
    66 #endif // __AKNSYSTEMPROGRESSPOPUP_H__
       
    67 
       
    68 // End of file