kmgroupware.h
00001 /* 00002 kmgroupware.h 00003 00004 This file is part of KMail. 00005 00006 Copyright (c) 2003 - 2004 Bo Thorsen <bo@klaralvdalens-datakonsult.se> 00007 Copyright (c) 2002 Karl-Heinz Zimmer <khz@klaralvdalens-datakonsult.se> 00008 Copyright (c) 2003 Steffen Hansen <steffen@klaralvdalens-datakonsult.se> 00009 00010 This library is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU Library General Public 00012 License as published by the Free Software Foundation; either 00013 version 2 of the License, or (at your option) any later version. 00014 00015 This library is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 Library General Public License for more details. 00019 00020 You should have received a copy of the GNU Library General Public License 00021 along with this library; see the file COPYING.LIB. If not, write to 00022 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00023 Boston, MA 02111-1307, USA. 00024 00025 In addition, as a special exception, the copyright holders give 00026 permission to link the code of this program with any edition of 00027 the Qt library by Trolltech AS, Norway (or with modified versions 00028 of Qt that use the same license as Qt), and distribute linked 00029 combinations including the two. You must obey the GNU General 00030 Public License in all respects for all of the code used other than 00031 Qt. If you modify this file, you may extend this exception to 00032 your version of the file, but you are not obligated to do so. If 00033 you do not wish to do so, delete this exception statement from 00034 your version. 00035 */ 00036 00037 #ifndef KMGROUPWARE_H 00038 #define KMGROUPWARE_H 00039 00040 #include <qguardedptr.h> 00041 00042 class KMAccount; 00043 class KMMessage; 00044 class KMMainWidget; 00045 class KURL; 00046 00047 00048 class KMGroupware : public QObject 00049 { 00050 Q_OBJECT 00051 00052 public: 00053 KMGroupware( QObject* parent = 0, const char* name = 0 ); 00054 ~KMGroupware(); 00055 00056 bool isEnabled() const { return mUseGroupware; } 00057 00064 static bool vPartFoundAndDecoded( KMMessage* msg, QString& s ); 00065 00066 // functions to be called by KMReaderWin for 'print formatting' 00067 QString vPartToHTML( const QString& iCal ); 00068 QString msTNEFToHTML( const QByteArray& tnef ); 00069 00074 bool handleLink( const KURL &aUrl, KMMessage* msg ); 00075 00076 public slots: 00077 /* (Re-)Read configuration file */ 00078 void readConfig(); 00079 00080 private slots: 00081 void unregisteredFromDCOP( const QCString& ); 00082 00083 private: 00084 bool mUseGroupware; 00085 }; 00086 00087 00088 #endif /* KMGROUPWARE_H */