| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeErrorMessage.h
Go to the documentation of this file.

    00001 /************************************************************************************
    00002 TerraLib - a library for developing GIS applications.
    00003 Copyright © 2001-2007 INPE and Tecgraf/PUC-Rio.
    00004
    00005 This code is part of the TerraLib library.
    00006 This library is free software; you can redistribute it and/or
    00007 modify it under the terms of the GNU Lesser General Public
    00008 License as published by the Free Software Foundation; either
    00009 version 2.1 of the License, or (at your option) any later version.
    00010
    00011 You should have received a copy of the GNU Lesser General Public
    00012 License along with this library.
    00013
    00014 The authors reassure the license terms regarding the warranties.
    00015 They specifically disclaim any warranties, including, but not limited to,
    00016 the implied warranties of merchantability and fitness for a particular purpose.
    00017 The library provided hereunder is on an "as is" basis, and the authors have no
    00018 obligation to provide maintenance, support, updates, enhancements, or modifications.
    00019 In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct,
    00020 indirect, special, incidental, or consequential damages arising out of the use
    00021 of this library and its documentation.
    00022 *************************************************************************************/
    00026 #ifndef TeErrorMessage_H
    00027 #define TeErrorMessage_H
    00028
    00029 #include <string>
    00030 using namespace std;
    00031
    00032 #include "TePrototype.h"
    00033 #include "TeSingleton.h"
    00034
    00047 enum TeMessageType
    00048 { Te_ABORTRETRYIGNORE, Te_OK, Te_OKCANCEL, Te_RETRYCANCEL, Te_YESNO, Te_YESNOCANCEL };
    00049
    00050
    00060 enum TeMessageIcon
    00061 {          Te_ICONEXCLAMATION, Te_ICONINFORMATION, Te_ICONQUESTION, Te_ICONSTOP };
    00062
    00063 /*---------
    00064 Return Value
    00065
    00066 Zero if there is not enough memory to display the message box;
    00067 otherwise one of the following values is returned:
    00068
    00069 Te_IDABORT   The Abort button was selected.
    00070 Te_IDCANCEL   The Cancel button was selected.
    00071 Te_IDIGNORE   The Ignore button was selected.
    00072 Te_IDNO   The No button was selected.
    00073 Te_IDOK   The OK button was selected.
    00074 Te_IDRETRY   The Retry button was selected.
    00075 Te_IDYES   The Yes button was selected.
    00076
    00077 ----*/
    00078
    00079 enum TeMessageReturn
    00080 { Te_IDABORT, Te_IDCANCEL, Te_IDIGNORE, Te_IDNO, Te_IDOK, Te_IDRETRY, Te_IDYES };
    00081
    00083 /*
    00084              Based on a configuration parameter, provide implementations
    00085              for console (stdio), MFC and QT
    00086
    00087              \sa TeException
    00088 */
    00089 class TL_DLL TeErrorMessage
    00090 {
    00091 public:
    00093            TeErrorMessage(){}
    00094
    00095            virtual ~TeErrorMessage(){}
    00096
    00097            virtual TeMessageReturn apply (
    00098                                               const string& appName,
    00099                                               const string & msgText,
    00100                                               TeMessageType       msgType,
    00101                                               TeMessageIcon iconType ) = 0;
    00102 };
    00103
    00104 class TL_DLL TeErrorMessagePrototype: public TePrototype<TeErrorMessage>
    00105 {
    00106            virtual TeErrorMessage* build() = 0;
    00107 };
    00108
    00109 #endif
    00110

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines