errorui.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : ErrorUI.h
00004 *  Part of     : CommonUI
00005 *  Description :   
00006 *  Version     : ?Version
00007 *
00008 *  Copyright © 2002-2005 Nokia. All rights reserved.
00009 *  This material, including documentation and any related 
00010 *  computer programs, is protected by copyright controlled by 
00011 *  Nokia. All rights are reserved. Copying, including 
00012 *  reproducing, storing, adapting or translating, any 
00013 *  or all of this material requires the prior written consent of 
00014 *  Nokia. This material also contains confidential 
00015 *  information which may not be disclosed to others without the 
00016 *  prior written consent of Nokia.
00017 * ==============================================================================
00018 */
00019 
00020 #if !defined ERROR_UI_H
00021 #define ERROR_UI_H
00022 
00023 #include <coemain.h>    //  CCoeEnv
00024 #include <textresolver.h>
00025 
00044 class CErrorUI : public CBase
00045 {
00046 public:
00047 
00048 public:
00049     
00053     IMPORT_C static CErrorUI* NewL();
00054     
00058     IMPORT_C static CErrorUI* NewLC();
00059 
00064     IMPORT_C static CErrorUI* NewL(CCoeEnv& aEnv);
00065     
00070     IMPORT_C static CErrorUI* NewLC(CCoeEnv& aEnv);
00071 
00072     
00076     IMPORT_C ~CErrorUI();
00077 
00089     IMPORT_C TBool ShowGlobalErrorNoteL(
00090          TInt aError,
00091          CTextResolver::TErrorContext aContext = CTextResolver::ECtxAutomatic
00092          );
00093 
00098     inline CTextResolver& TextResolver(){ return *iTextResolver; } 
00099 
00111     IMPORT_C TBool ShowGlobalErrorQueryL(
00112          TInt aError,
00113          CTextResolver::TErrorContext aContext = CTextResolver::ECtxAutomatic
00114          );
00115 
00116 private:
00117     
00118     void ConstructL();
00119     static CErrorUI* ConstructLC(); 
00120 
00121 private:
00122 
00123     // Text resolver used by this module
00124     CTextResolver*  iTextResolver;    
00125 };
00126 
00127 // ERROR_UI_H  
00128 #endif
00129             
00130 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top