exchange.h
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18*/
19#ifndef KORG_EXCHANGE_H
20#define KORG_EXCHANGE_H
21
22#include <tqstring.h>
23#include <tqdatetime.h>
24
25#include <korganizer/part.h>
26
27#include <libkcal/incidence.h>
28#include <libkcal/event.h>
29
30#include <exchangeaccount.h>
31#include <exchangeclient.h>
32
33// using namespace KOrg;
34using namespace KCal;
35
36class Exchange : public KOrg::Part {
37 TQ_OBJECT
38
39 public:
40 Exchange( KOrg::MainWindow *, const char *name );
41 ~Exchange();
42
43 TQString info();
44 // This method is used for the category of the key bindings
45 TQString shortInfo();
46
47 signals:
48 void enableIncidenceActions( bool );
49 void calendarChanged();
50 void calendarChanged(const TQDate&start,const TQDate&end);
51
52 private slots:
53 void download();
54 void upload();
55 void remove();
56 void configure();
57 void test();
58 void slotIncidenceSelected( Incidence * );
59
60 private:
61 void test2();
62 void showError( int error, const TQString& moreInfo = TQString() );
63
64 KPIM::ExchangeClient *mClient;
65 KPIM::ExchangeAccount* mAccount;
66};
67
68#endif
69
interface for korganizer main window
Definition: mainwindow.h:41