00001 /* 00002 * ============================================================================ 00003 * Name : AknGlobalConfirmationQuery.h 00004 * Part of : Avkon 00005 * 00006 * Description: 00007 * Uses notification framework to show a global listquery. 00008 * Version: 00009 * 00010 * Copyright © 2002 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. All rights are reserved. Copying, 00014 * including reproducing, storing, adapting or translating, any 00015 * or all of this material requires the prior written consent of 00016 * Nokia Corporation. This material also contains confidential 00017 * information which may not be disclosed to others without the 00018 * prior written consent of Nokia Corporation. 00019 * ============================================================================ 00020 */ 00021 #ifndef __AKNGLOBALCONFIRMATIONQUERY_H__ 00022 #define __AKNGLOBALCONFIRMATIONQUERY_H__ 00023 00024 #include <AknNotify.h> 00025 #include <aknnotifystd.h> 00026 #include <aknquerydialog.h> 00027 #include <AknsItemID.h> 00028 00029 #start_since SINCE_3_1_SDK 00030 class CAknSDData; 00031 #end_since SINCE_3_1_SDK 00032 00077 NONSHARABLE_CLASS(CAknGlobalConfirmationQuery) : public CBase 00078 { 00079 public: 00080 00081 IMPORT_C static CAknGlobalConfirmationQuery* NewL(); 00082 IMPORT_C static CAknGlobalConfirmationQuery* NewLC(); 00083 IMPORT_C ~CAknGlobalConfirmationQuery(); 00084 00097 IMPORT_C void ShowConfirmationQueryL( TRequestStatus& aStatus, 00098 const TDesC& aPrompt, 00099 TInt aSoftkeys = 0, 00100 TInt aAnimation = 0, 00101 const TDesC& aImageFile = KNullDesC, 00102 TInt aImageId = 0, 00103 TInt aImageMaskId = 0, 00104 CAknQueryDialog::TTone aTone = CAknQueryDialog::ENoTone, 00105 TBool aDismissWithAllKeys = EFalse ); 00111 IMPORT_C void UpdateConfirmationQuery( TInt aSoftkeys ); 00112 00113 00117 IMPORT_C void CancelConfirmationQuery(); 00118 00119 00128 IMPORT_C void SetImageSkinId( TAknsItemID& aId ); 00129 00130 #start_since SINCE_3_1_SDK 00131 00141 IMPORT_C void SetSecondaryDisplayData(CAknSDData* aData); 00142 #end_since SINCE_3_1_SDK 00143 private: 00144 CAknGlobalConfirmationQuery(); 00145 void ConstructL(); 00146 00147 private: 00148 TAknGlobalQueryCmd iCmd; 00149 TInt iSoftkeys; 00150 TInt iAnimation; 00151 CAknQueryDialog::TTone iTone; 00152 RNotifier iNotify; 00153 CBufFlat *iBuffer; 00154 TPtrC8 iBufferPtr; 00155 TInt iSkinsMajorId; 00156 TInt iSkinsMinorId; 00157 CAknSDData* iAknSDData; 00158 TBuf8<1> iResultBuf; // not really used, but needed to prevent buffer handling errors 00159 }; 00160 00161 00162 #endif