| 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/TeProgressBase.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  __TERRALIB_INTERNAL_PROGRESSBASE_H
    00027 #define  __TERRALIB_INTERNAL_PROGRESSBASE_H
    00028
    00029 #include "TeDefines.h"
    00030 #include <string>
    00031 using std::string;
    00032
    00034 /*
    00035            It defines the methods that should be implemented by concrete classes.
    00036            Assumes that a progress interface has a Caption to indicate the task
    00037            being monitored and a Message to be displayed along with the progress
    00038            indication. A progress interface also know the total number of steps
    00039            required to finish the task being monitored.
    00040 */
    00041 class TL_DLL TeProgressBase
    00042 {
    00043 public:
    00044
    00046            TeProgressBase(){}
    00047
    00049            virtual ~TeProgressBase() {}
    00050
    00052            virtual void setTotalSteps(int n) =0;
    00053
    00055            virtual void setProgress(int n) = 0;
    00056
    00058            virtual void reset() = 0;
    00059
    00061            virtual void cancel() = 0;
    00062
    00064            virtual void setMessage(const string& text) = 0;
    00065
    00067            virtual string getMessage() { return ""; }
    00068
    00070            virtual bool wasCancelled() = 0;
    00071
    00073            virtual void setCaption(const string& cap) = 0;
    00074
    00075 };
    00076 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines