videditor/VideoEditorUiComponents/inc/VeiErrorUi.h
changeset 9 d87d32eab1a9
parent 0 951a5db380a0
equal deleted inserted replaced
0:951a5db380a0 9:d87d32eab1a9
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef VEIERRORUI_H
       
    21 #define VEIERRORUI_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <ConeResLoader.h>
       
    26 #include "VideoEditorCommon.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CErrorUI;
       
    30 class CCoeEnv;
       
    31 
       
    32 /**	CLASS:	CVeiErrorUI
       
    33 * 
       
    34 *	Extended error UI.
       
    35 *
       
    36 */
       
    37 NONSHARABLE_CLASS( CVeiErrorUI ) : public CBase
       
    38 {
       
    39 public:
       
    40 
       
    41 	/** @name Methods:*/
       
    42 	//@{
       
    43 
       
    44 	/**
       
    45 	* Destructor
       
    46 	*/
       
    47 	CVeiErrorUI::~CVeiErrorUI();
       
    48 
       
    49 	/**
       
    50 	* Static factory constructor.
       
    51 	*
       
    52 	* @param   aCoeEnv
       
    53 	* @return  created instance
       
    54 	*/
       
    55 	IMPORT_C static CVeiErrorUI* NewL( CCoeEnv& aCoeEnv );
       
    56 
       
    57 	/**
       
    58 	* Shows global error note for given error.
       
    59 	* There are empirically tested error codes for which platform shows something
       
    60 	* For other ones platform does not show anything and for them default string is showed.
       
    61 	* These error codes must be individually tested for every phone model.
       
    62 	*
       
    63 	* @param aError standard error code
       
    64 	* @return error code if showing the note fails, or KErrNone
       
    65 	*/
       
    66 	IMPORT_C TInt ShowGlobalErrorNote( TInt aError ) const;
       
    67 
       
    68 	/**
       
    69 	* Shows error note with given message.
       
    70 	* 
       
    71 	* @param aCoeEnv No description.
       
    72 	* @param aResourceId No description.
       
    73 	* @param aError No description.
       
    74 	* @return error code if showing the note fails, or KErrNone
       
    75 	*/
       
    76 	IMPORT_C static TInt ShowErrorNote( CCoeEnv& aCoeEnv, const TInt aResourceId = 0, TInt aError = 0 );
       
    77         
       
    78 	//@}
       
    79 
       
    80 private:
       
    81 
       
    82     /** @name Methods:*/
       
    83     //@{
       
    84 
       
    85 	/**
       
    86 	* C++ constructor.
       
    87 	*/
       
    88 	CVeiErrorUI( CCoeEnv& aCoeEnv );
       
    89 
       
    90 	/**
       
    91 	* Second-phase constructor.
       
    92 	*/
       
    93 	void ConstructL();
       
    94 
       
    95     //@}
       
    96 
       
    97 private:
       
    98 
       
    99 	/** @name Members:*/
       
   100 	//@{
       
   101 
       
   102 	CCoeEnv& 				iCoeEnv;
       
   103 	RConeResourceLoader 	iResLoader;
       
   104 	CErrorUI* 				iErrorUI;
       
   105 
       
   106 	//@}
       
   107 };
       
   108 
       
   109 #endif
       
   110 
       
   111 // End of File
       
   112