AknGlobalListMsgQuery.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name        : AknGlobalListMsgQuery.h
00004 *  Part of     : UI Framework Core / AVKON Notifiers Client
00005 *  Description : Uses notification framework to show a global list query with 
00006 *                message field.
00007 *  Version     : %version: 2 %
00008 *
00009 *  Copyright © 2008 Nokia.  All rights reserved.
00010 *  This material, including documentation and any related computer
00011 *  programs, is protected by copyright controlled by Nokia.  All
00012 *  rights are reserved.  Copying, including reproducing, storing,
00013 *  adapting or translating, any or all of this material requires the
00014 *  prior written consent of Nokia.  This material also contains
00015 *  confidential information which may not be disclosed to others
00016 *  without the prior written consent of Nokia.
00017 * ============================================================================
00018 */
00019 #ifndef __AKNGLOBALLISTMSGQUERY_H__
00020 #define __AKNGLOBALLISTMSGQUERY_H__
00021 
00022 #include <aknnotifystd.h>
00023 #include <aknquerydialog.h>
00024 
00025 class CAknSDData;
00026 
00094 NONSHARABLE_CLASS(CAknGlobalListMsgQuery) : public CBase
00095     {
00096 public:
00102     IMPORT_C static CAknGlobalListMsgQuery* NewL();
00103 
00109     IMPORT_C static CAknGlobalListMsgQuery* NewLC();
00110 
00114     IMPORT_C ~CAknGlobalListMsgQuery();
00115 
00140     IMPORT_C void ShowListMsgQueryL(
00141         const MDesCArray* aItems,
00142         TRequestStatus& aStatus,
00143         const TDesC& aHeaderText,
00144         const TDesC& aMsgText,
00145         const TInt aIndex = 0,
00146         TInt aSoftkeys = 0,
00147         TInt aAcceptKeyId = 0,
00148         TInt aCancelKeyId = 0,
00149         const TDesC& aHeaderImageFile = KNullDesC,        
00150         TInt aImageId = 0,
00151         TInt aImageMaskId = -1,
00152         CAknQueryDialog::TTone aTone = CAknQueryDialog::ENoTone);
00153 
00157     IMPORT_C void MoveSelectionUp();
00158 
00162     IMPORT_C void MoveSelectionDown();
00163 
00167     IMPORT_C void SelectItem();
00168 
00172     IMPORT_C void CancelListMsgQuery();
00173 
00180     IMPORT_C void SetSecondaryDisplayData(CAknSDData* aData);
00181     
00187     IMPORT_C void SetImageSkinId(const TAknsItemID& aId);
00188     
00189 private:
00193     CAknGlobalListMsgQuery();
00194 
00198     void ConstructL(); 
00199     
00203     void SetHeadingL(const TDesC& aHeading);
00204     
00208     void UpdateListMsgQuery();        
00209 
00210 private:
00211     // Command id.
00212     TAknGlobalQueryCmd iCmd;
00213     // Notifier handle.
00214     RNotifier iNotify;
00215     // Index to set which item will be selected.
00216     TInt iIndex;
00217     // Buffer to hold the variables passed to server.
00218     CBufFlat *iBuffer;
00219     // Pointer to buffer.
00220     TPtrC8 iBufferPtr;
00221     HBufC* iHeading;
00222     CAknSDData* iAknSDData;
00223     TBuf8<1> iResultBuf; // Not really used, but needed to prevent buffer handling errors.
00224     TInt iSkinsMajorId;
00225     TInt iSkinsMinorId;
00226     };
00227 
00228 #endif // __AKNGLOBALLISTMSGQUERY_H__

Copyright © Nokia Corporation 2001-2007
Back to top