exchange.h
00001 /* 00002 This file is part of KOrganizer. 00003 Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 */ 00019 #ifndef KORG_EXCHANGE_H 00020 #define KORG_EXCHANGE_H 00021 00022 #include <tqstring.h> 00023 #include <tqdatetime.h> 00024 00025 #include <korganizer/part.h> 00026 00027 #include <libkcal/incidence.h> 00028 #include <libkcal/event.h> 00029 00030 #include <exchangeaccount.h> 00031 #include <exchangeclient.h> 00032 00033 // using namespace KOrg; 00034 using namespace KCal; 00035 00036 class Exchange : public KOrg::Part { 00037 Q_OBJECT 00038 00039 public: 00040 Exchange( KOrg::MainWindow *, const char *name ); 00041 ~Exchange(); 00042 00043 TQString info(); 00044 // This method is used for the category of the key bindings 00045 TQString shortInfo(); 00046 00047 signals: 00048 void enableIncidenceActions( bool ); 00049 void calendarChanged(); 00050 void calendarChanged(const TQDate&start,const TQDate&end); 00051 00052 private slots: 00053 void download(); 00054 void upload(); 00055 void remove(); 00056 void configure(); 00057 void test(); 00058 void slotIncidenceSelected( Incidence * ); 00059 00060 private: 00061 void test2(); 00062 void showError( int error, const TQString& moreInfo = TQString() ); 00063 00064 KPIM::ExchangeClient *mClient; 00065 KPIM::ExchangeAccount* mAccount; 00066 }; 00067 00068 #endif 00069