kitchensync

syncprocess.h
1/*
2 This file is part of KitchenSync.
3
4 Copyright (c) 2005 Tobias Koenig <tokoe@kde.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19*/
20
21#ifndef SYNCPROCESS_H
22#define SYNCPROCESS_H
23
24#include <tqobject.h>
25
26#include <libqopensync/group.h>
27
28namespace QSync {
29class Engine;
30}
31
32class SyncProcess : public TQObject
33{
34 Q_OBJECT
35
36
37 public:
38 SyncProcess( const QSync::Group &group );
39 ~SyncProcess();
40
41 QSync::Group group() const { return mGroup; }
42 QSync::Engine* engine() const { return mEngine; }
43
44 TQString groupStatus() const;
45 TQString memberStatus( const QSync::Member &member ) const;
46
47 QSync::Result addMember( const QSync::Plugin &plugin );
48
49 void reinitEngine();
50
52 void applyObjectTypeFilter();
53
54 signals:
58 void engineChanged( QSync::Engine *engine );
59
60 private:
61 QSync::Group mGroup;
62 QSync::Engine *mEngine;
63};
64
65#endif