kitchensync

konnectormanager.h

00001 /*
00002     This file is part of KitchenSync.
00003 
00004     Copyright (c) 2002,2003 Holger Freyther <freyther@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., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 #ifndef KSYNC_KONNECTORMANAGER_H
00022 #define KSYNC_KONNECTORMANAGER_H
00023 
00024 #include <qobject.h>
00025 #include <qstring.h>
00026 
00027 #include <kstaticdeleter.h>
00028 #include <kresources/manager.h>
00029 
00030 #include <syncee.h>
00031 #include <synceelist.h>
00032 
00033 #include "konnector.h"
00034 #include "filter.h"
00035 
00036 namespace KSync
00037 {
00038 
00039 class Konnector;
00040 class KonnectorInfo;
00041 
00042 class KDE_EXPORT KonnectorManager : public QObject, public KRES::Manager<Konnector>
00043 {
00044   Q_OBJECT
00045   friend class KStaticDeleter<KonnectorManager>;
00046 
00047   public:
00048     static KonnectorManager *self();
00049 
00050   signals:
00055     void synceesRead( KSync::Konnector * );
00056 
00060     void synceeReadError( KSync::Konnector * );
00061 
00066     void synceesWritten( KSync::Konnector * );
00067 
00071     void synceeWriteError( KSync::Konnector * );
00072 
00073   protected:
00074     void connectSignals();
00075 
00076   private:
00077     KonnectorManager();
00078     ~KonnectorManager();
00079 
00080     static KonnectorManager *m_self;
00081 
00082     class Private;
00083     Private *d;
00084 };
00085 
00086 }
00087 
00088 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys