libkpimexchange Library API Documentation

exchangeupload.h

00001 /*
00002     This file is part of libkpimexchange
00003     Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library 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 GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018     Boston, MA 02111-1307, USA.
00019 */
00020 #ifndef KDEPIM_EXCHANGE_UPLOAD_H
00021 #define KDEPIM_EXCHANGE_UPLOAD_H
00022 
00023 #include <qstring.h>
00024 #include <qwidget.h>
00025 #include <kio/job.h>
00026 
00027 #include <libkcal/calendar.h>
00028 #include <libkcal/event.h>
00029 
00030 namespace KPIM {
00031 
00032 class ExchangeAccount;
00033 
00034 class ExchangeUpload : public QObject {
00035     Q_OBJECT
00036   public:
00037     ExchangeUpload( KCal::Event* event, ExchangeAccount* account, const QString& timeZoneId, QWidget* window=0 );
00038     ~ExchangeUpload();
00039 
00040   private slots:
00041     void slotPatchResult( KIO::Job * );
00042     void slotPropFindResult( KIO::Job * );
00043     void slotFindUidResult( KIO::Job * );
00044 
00045   signals:
00046     void startDownload();
00047     void finishDownload();
00048     void finished( ExchangeUpload* worker, int result, const QString& moreInfo );
00049 
00050   private:
00051     void tryExist();
00052     void startUpload( const KURL& url );
00053     void findUid( QString const& uid );
00054     
00055     ExchangeAccount* mAccount;
00056     KCal::Event* m_currentUpload;
00057     int m_currentUploadNumber;
00058     QString mTimeZoneId;
00059     QWidget* mWindow;
00060 };
00061 
00062 }
00063 
00064 #endif
KDE Logo
This file is part of the documentation for libkpimexchange Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:10 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003