korganizer

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 <qstring.h>
00023 #include <qdatetime.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   public:
00039     Exchange( KOrg::MainWindow *, const char *name );
00040     ~Exchange();
00041 
00042     QString info();
00043     // This method is used for the category of the key bindings
00044     QString shortInfo();
00045 
00046   signals:
00047     void enableIncidenceActions( bool );
00048     void calendarChanged();
00049     void calendarChanged(const QDate&start,const QDate&end);
00050 
00051   private slots:
00052     void download();
00053     void upload();
00054     void remove();
00055     void configure();
00056     void test();
00057     void slotIncidenceSelected( Incidence * );
00058 
00059   private:
00060     void test2();
00061     void showError( int error, const QString& moreInfo = QString::null );
00062 
00063     KPIM::ExchangeClient *mClient;
00064     KPIM::ExchangeAccount* mAccount;
00065 };
00066 
00067 #endif
00068 
KDE Home | KDE Accessibility Home | Description of Access Keys