cakncommondialogsbase.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : CAknCommonDialogsBase.h
00004 *  Part of     : Common File Dialogs / CommonDialogs.dll
00005 *  Interface   : ?Interface_category, ?Interface_name
00006 *  Description : ?Description
00007 *  Version     : ?Version
00008 *
00009 *  Copyright (c) 2002-2006 Nokia Corporation.
00010 *  This material, including documentation and any related
00011 *  computer programs, is protected by copyright controlled by
00012 *  Nokia Corporation. All rights are reserved. Copying,
00013 *  including reproducing, storing, adapting or translating, any
00014 *  or all of this material requires the prior written consent of
00015 *  Nokia Corporation. This material also contains confidential
00016 *  information which may not be disclosed to others without the
00017 *  prior written consent of Nokia Corporation.
00018 * ==============================================================================
00019 */
00020 
00021 #ifndef CAKNCOMMONDIALOGSBASE_H
00022 #define CAKNCOMMONDIALOGSBASE_H
00023 
00024 // INCLUDES
00025 #include <E32BASE.H>
00026 #include <ConeResLoader.h>
00027 
00028 // CONSTANTS
00029 
00034 enum TCommonDialogType
00035     {
00036     ECFDDialogTypeNormal,
00037     ECFDDialogTypeSelect,
00038     ECFDDialogTypeSave,
00039     ECFDDialogTypeMove,
00040     ECFDDialogTypeBrowse,
00041     ECFDDialogTypeDefaultSetting, //Cannot be used in multi-drive
00042     ECFDDialogTypeCopy
00043     };
00044 
00048 _LIT( KCFDPanicText, "CommonDialogs" );
00049 
00053 enum TCFDPanics
00054     {
00055     ECFDPanicInvalidFilterType                      =  1,
00056     ECFDPanicInvalidFilterStyle                     =  2,
00057     ECFDPanicInvalidAttributeFilterDataLength       =  3,
00058     ECFDPanicInvalidAttributeFilterDataCount        =  4,
00059     ECFDPanicInvalidFileNameFilterDataLength        =  5,
00060     ECFDPanicInvalidFileNameFilterDataCount         =  6,
00061     ECFDPanicNoLocationStructures                   =  7,
00062     ECFDPanicRootPathNotDefined                     =  8,
00063     ECFDPanicNoPathForFileNamePromptDialog          =  9,
00064     ECFDPanicOutOfBounds                            = 10,
00065     ECFDPanicNullParameter                          = 11,
00066     ECFDPanicNoResourceDefined                      = 12,
00067     ECFDPanicTitleOrSoftkeyNotSet                   = 13
00068     };
00069 
00070 // FORWARD DECLARATIONS
00071 class CCoeEnv;
00072 
00073 //  CLASS DEFINITION
00082 NONSHARABLE_CLASS(CAknCommonDialogsBase) : public CBase
00083     {
00084     public:     // Enumerations
00085 
00093         enum TReturnKey
00094             {
00095             ERightSoftkey = EFalse,
00096             ELeftSoftkey,
00097             ESelectionKey
00098             };
00099 
00100     protected:  // Constructors and destructors
00101 
00102         CAknCommonDialogsBase();
00103 
00104         virtual ~CAknCommonDialogsBase();
00105 
00109         void BaseConstructL();
00110 
00111     protected:  // Data
00112 
00118         CCoeEnv* iCoeEnv;
00119 
00120     private:    // Data
00121 
00122         // Own: Loads resource file of Common File Dialogs on any language.
00123         RConeResourceLoader iResourceLoader;
00124     };
00125 
00126 // CAKNCOMMONDIALOGSBASE_H
00127 #endif
00128 
00129 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top