kitchensync Library API Documentation

core.h

00001 /*
00002     This file is part of KitchenSync.
00003 
00004     Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019     Boston, MA 02111-1307, USA.
00020 */
00021 #ifndef KSYNC_CORE_H
00022 #define KSYNC_CORE_H
00023 
00024 #include "actionpart.h"
00025 #include "profile.h"
00026 
00027 #include <kdebug.h>
00028 
00029 #include <qwidget.h>
00030 
00031 namespace KSync
00032 {
00033 
00034 class ProfileManager;
00035 class KonnectorManager;
00036 class SyncUi;
00037 class SyncAlgorithm;
00038 class Engine;
00039 
00040 enum KonnectorMode { KONNECTOR_ONLINE = 0, KONNECTOR_OFFLINE };
00041 
00047 class Core : public QWidget
00048 {
00049    Q_OBJECT
00050   public:
00051     Core( QWidget *parent );
00052     ~Core();
00053 
00057     virtual Profile currentProfile() const = 0;
00058 
00063     virtual ProfileManager *profileManager() const = 0;
00064 
00065     virtual Engine *engine() const = 0;
00066 
00070     virtual SyncUi *syncUi() = 0;
00071 
00075     virtual SyncAlgorithm *syncAlgorithm() = 0;
00076 
00080     virtual const QPtrList<ActionPart> parts() const = 0;
00081 
00082   signals:
00088     void profileChanged( const Profile &oldProfile );
00089 
00095     void konnectorProgress( Konnector *konnector , const Progress &prog );
00096 
00101     void konnectorError( Konnector *konnector, const Error &err );
00102 
00107     void partChanged( ActionPart *newPart );
00108 
00114     void partProgress( ActionPart *part, const Progress &prog );
00115 
00121     void partError( ActionPart *part, const Error &error );
00122 
00126     void startSync();
00127 
00131     void startSync( ActionPart * );
00132 
00133     void syncProgress( ActionPart *, int, int );
00137     void doneSync();
00138 
00142     void doneSync( ActionPart * );
00143 };
00144 
00145 }
00146 
00147 #endif
KDE Logo
This file is part of the documentation for kitchensync Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Aug 2 09:54:00 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003