akngloballistquery.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name        : AknGlobalListQuery.h
00004 *  Part of     : UI Framework Core / AVKON Notifiers Client
00005 *  Description : Uses notification framework to show a global list query.
00006 *  Version     : %version: %
00007 *
00008 *  Copyright © 2002-2007 Nokia.  All rights reserved.
00009 *  This material, including documentation and any related computer
00010 *  programs, is protected by copyright controlled by Nokia.  All
00011 *  rights are reserved.  Copying, including reproducing, storing,
00012 *  adapting or translating, any or all of this material requires the
00013 *  prior written consent of Nokia.  This material also contains
00014 *  confidential information which may not be disclosed to others
00015 *  without the prior written consent of Nokia.
00016 * ============================================================================
00017 */
00018 #ifndef __AKNGLOBALLISTQUERY_H__
00019 #define __AKNGLOBALLISTQUERY_H__
00020 
00021 #include <AknNotify.h>
00022 #include <aknnotifystd.h>
00023 #include <bamdesca.h>
00024 
00025 class CAknSDData;
00026 
00027 // Default index for list query
00028 const TInt KGlobalListQueryDefaultIndex = 0;
00029 
00030 _LIT( KGlobalListQueryItemSeparator, "\n");
00031 
00065 NONSHARABLE_CLASS(CAknGlobalListQuery) : public CBase
00066     {
00067     public:
00071         IMPORT_C static CAknGlobalListQuery* NewL();
00072 
00076         IMPORT_C static CAknGlobalListQuery* NewLC();
00077 
00081         IMPORT_C ~CAknGlobalListQuery();
00082 
00091         IMPORT_C void ShowListQueryL( 
00092             const MDesCArray* aItems,
00093             TRequestStatus& aStatus,
00094             const TInt aIndex = KGlobalListQueryDefaultIndex);
00095 
00099         IMPORT_C void MoveSelectionUp();
00100 
00104         IMPORT_C void MoveSelectionDown();
00105 
00109         IMPORT_C void SelectItem();
00110 
00114         IMPORT_C void CancelListQuery();
00115 
00123         IMPORT_C void SetHeadingL(const TDesC& aHeading);
00124 
00133         IMPORT_C void SetSecondaryDisplayData(CAknSDData* aData);
00134         
00135     private:
00139         IMPORT_C void UpdateListQuery();
00140 
00141     private:
00145         CAknGlobalListQuery();
00146 
00150         void ConstructL(); 
00151 
00152     private:
00153         // Command id.
00154         TAknGlobalQueryCmd iCmd;
00155         // Notifier handle.
00156         RNotifier iNotify;
00157         // Index to set which item will be selected.
00158         TInt iIndex;
00159         // Buffer to hold the variables passed to server.
00160         CBufFlat *iBuffer;
00161         // Pointer to buffer.
00162         TPtrC8 iBufferPtr;
00163         HBufC* iHeading;
00164         CAknSDData* iAknSDData;
00165         TBuf8<1> iResultBuf; // Not really used, but needed to prevent buffer handling errors.
00166     };
00167 
00168 // __AKNGLOBALLISTQUERY_H__
00169 #endif

Copyright © Nokia Corporation 2001-2008
Back to top