akndescarraydecorator.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name     : AknDesCArrayDecorator.h
00004 *  Part of  : Avkon
00005 *
00006 *  Description:
00007 *     Used to decorate an MDesCArray with an extra entry.
00008 *     
00009 *     
00010 *  Version:
00011 *
00012 *  Copyright © 2002 Nokia Corporation.
00013 *  This material, including documentation and any related 
00014 *  computer programs, is protected by copyright controlled by 
00015 *  Nokia Corporation. All rights are reserved. Copying, 
00016 *  including reproducing, storing,  adapting or translating, any 
00017 *  or all of this material requires the prior written consent of 
00018 *  Nokia Corporation. This material also contains confidential 
00019 *  information which may not be disclosed to others without the 
00020 *  prior written consent of Nokia Corporation.
00021 * ============================================================================
00022 */
00023 // AknDesCArrayDecorator.h
00024 //
00025 // 2001 Symbian Ltd.  All rights reserved.
00026 //
00027 
00028 #ifndef __AKNDESCARRAYDECORATOR_H__
00029 #define __AKNDESCARRAYDECORATOR_H__
00030 
00031 #include <bamdesca.h>
00032 
00033 class TAknDesCArrayDecorator : public MDesCArray
00034         {
00035 public:
00040         IMPORT_C TAknDesCArrayDecorator();
00041 public:
00047         IMPORT_C void SetArray(const MDesCArray* aArray);
00048 
00057         IMPORT_C void SetDecorationText(const TDesC& aText);
00058 
00065         IMPORT_C void SetActive(const TBool aActive);
00066 
00078         IMPORT_C TBool DecoratedIndex(TInt& aIndex) const;
00079 public: // from MDesCArray
00085     IMPORT_C virtual TInt MdcaCount() const;
00086 
00094     IMPORT_C virtual TPtrC MdcaPoint(TInt aIndex) const;
00095 private:
00096         // the following members are not owned
00097         const MDesCArray* iArray;
00098         TPtrC iText;
00099         TBool iActive;
00100         
00101         __DECLARE_TEST;
00102         };
00103 
00104 //__AKNDESCARRAYDECORATOR_H__
00105 #endif

Copyright © Nokia Corporation 2001-2008
Back to top