00001 /****************************************************************************** 00002 * 00003 * package: Log4Qt 00004 * file: basicconfigurator.h 00005 * created: September 2007 00006 * author: Martin Heinrich 00007 * 00008 * 00009 * Copyright 2007 Martin Heinrich 00010 * 00011 * Licensed under the Apache License, Version 2.0 (the "License"); 00012 * you may not use this file except in compliance with the License. 00013 * You may obtain a copy of the License at 00014 * 00015 * http://www.apache.org/licenses/LICENSE-2.0 00016 * 00017 * Unless required by applicable law or agreed to in writing, software 00018 * distributed under the License is distributed on an "AS IS" BASIS, 00019 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00020 * See the License for the specific language governing permissions and 00021 * limitations under the License. 00022 * 00023 ******************************************************************************/ 00024 00025 #ifndef LOG4QT_BASICCONFIGURATOR_H 00026 #define LOG4QT_BASICCONFIGURATOR_H 00027 00028 00029 /****************************************************************************** 00030 * Dependencies 00031 ******************************************************************************/ 00032 00033 00034 #include <QtCore/Qt> 00035 #include "log4qt/log4qt.h" 00036 00037 00038 /****************************************************************************** 00039 * Declarations 00040 ******************************************************************************/ 00041 00042 namespace Log4Qt 00043 { 00044 00045 class Appender; 00046 00053 class BasicConfigurator 00054 { 00055 private: 00056 BasicConfigurator(); // Not implemented 00057 // BasicConfigurator(const BasicConfigurator &rOther); // Use compiler default 00058 // virtual ~BasicConfigurator(); // Use compiler default 00059 // BasicConfigurator &operator=(const BasicConfigurator &rOther); // Use compiler default 00060 00061 public: 00062 static bool configure(); 00063 static void configure(Appender *pAppender); 00064 static void resetConfiguration(); 00065 }; 00066 00067 00068 /************************************************************************** 00069 * Operators, Helper 00070 **************************************************************************/ 00071 00072 00073 /************************************************************************** 00074 * Inline 00075 **************************************************************************/ 00076 00077 00078 } // namspace Log4Qt 00079 00080 00081 // Q_DECLARE_TYPEINFO(Log4Qt::BasicConfigurator, Q_MOVABLE_TYPE); // Use default 00082 00083 00084 #endif // LOG4QT_BASICCONFIGURATOR_H