uifw/AknGlobalUI/OldStyleNotif/Inc/aknsystemconfirmationpopup.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 implementation of global confirmation query.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __AKNSYSTEMCONFIRMATIONPOPUP_H__
       
    19 #define __AKNSYSTEMCONFIRMATIONPOPUP_H__
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <e32base.h>
       
    23 #include <eiknotapi.h>
       
    24 #include <eikcmobs.h>
       
    25 #include <AknQueryDialog.h>
       
    26 #include "aknsystemmsgpopup.h" // for MAknQueryNotificationCallback
       
    27 
       
    28 NONSHARABLE_CLASS(CAknQueryNotificationDialog) : public CAknQueryDialog
       
    29     {
       
    30 public:
       
    31     CAknQueryNotificationDialog(
       
    32         MAknQueryNotificationCallback* aCallBack,
       
    33         CAknQueryNotificationDialog** aSelfPtr,
       
    34         TInt aSoftkeys = 0,
       
    35         TInt aAnimation = 0,
       
    36         CEikImage* aImage = NULL,
       
    37         const TTone aTone = ENoTone,
       
    38         TBool aEveryKeyDismisses = EFalse,
       
    39         TInt aImageId = 0,
       
    40         TInt aMaskId = 0);
       
    41 
       
    42     ~CAknQueryNotificationDialog();
       
    43     
       
    44     TKeyResponse OfferKeyEventL( 
       
    45         const TKeyEvent& aKeyEvent,
       
    46         TEventCode aType);
       
    47 
       
    48 protected:
       
    49     TBool OkToExitL(TInt aButtonId);
       
    50     void PostLayoutDynInitL();
       
    51 
       
    52 private:
       
    53     virtual void CEikDialog_Reserved_1();
       
    54     virtual void CEikDialog_Reserved_2();   
       
    55     virtual void CAknDialog_Reserved();
       
    56     virtual void CAknQueryDialog_Reserved();
       
    57 
       
    58 private:
       
    59     TInt iSoftkeys;
       
    60     TInt iAnimation;
       
    61     CEikImage* iImage;
       
    62     MAknQueryNotificationCallback* iCallBack;
       
    63     CAknQueryNotificationDialog** iSelfPtr;
       
    64     TBool iEveryKeyDismisses;
       
    65     TInt iImageId, iMaskId;
       
    66     };
       
    67 
       
    68 
       
    69 NONSHARABLE_CLASS(CAknGlobalConfirmationQuerySubject) : 
       
    70     public CBase, 
       
    71     public MEikSrvNotifierBase2, 
       
    72     public MAknQueryNotificationCallback
       
    73     {
       
    74 public:
       
    75     static CAknGlobalConfirmationQuerySubject* NewL();
       
    76     virtual ~CAknGlobalConfirmationQuerySubject();
       
    77     
       
    78     // From MEikSrvNotifierBase.
       
    79     void Release();
       
    80     TNotifierInfo RegisterL();
       
    81     TNotifierInfo Info() const;
       
    82     TPtrC8 StartL(const TDesC8& aBuffer);
       
    83     void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    84     TPtrC8 UpdateL(const TDesC8& aBuffer);
       
    85     void Cancel();
       
    86     
       
    87     // From MAknListQueryNotificationCallback.
       
    88     void QueryDismissedL(TInt aResult);
       
    89 
       
    90 private:
       
    91     CAknGlobalConfirmationQuerySubject();
       
    92     void ConstructL();
       
    93 
       
    94 private:
       
    95     RMessagePtr2 iMessage;
       
    96     const TAny* iReturnVal;
       
    97     TBool iPending;
       
    98     TNotifierInfo iInfo;
       
    99     CAknQueryNotificationDialog* iDlg;
       
   100     TBool iAppsKeySuppressed;
       
   101 
       
   102     CEikonEnv* iStoredEikonEnv;
       
   103     };
       
   104 
       
   105 #endif // __AKNSYSTEMCONFIRMATIONPOPUP_H__
       
   106 
       
   107 // End of file