diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-07 22:30:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-07 22:30:29 +0000 |
commit | d8b40941f9d1a221add0b9094eb09405a91a8aab (patch) | |
tree | 0b8e9b6347f6e75925bb3c386a47c5300b1a4775 /kitchensync/src/syncprocessmanager.h | |
parent | 009631d0fc83f471d6c515e2a5001337a5a2ea21 (diff) | |
download | tdepim-d8b40941f9d1a221add0b9094eb09405a91a8aab.tar.gz tdepim-d8b40941f9d1a221add0b9094eb09405a91a8aab.zip |
Part 2/2 of Chakra patch commit
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1172727 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kitchensync/src/syncprocessmanager.h')
-rw-r--r-- | kitchensync/src/syncprocessmanager.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/kitchensync/src/syncprocessmanager.h b/kitchensync/src/syncprocessmanager.h index b95018a84..38004977d 100644 --- a/kitchensync/src/syncprocessmanager.h +++ b/kitchensync/src/syncprocessmanager.h @@ -26,7 +26,8 @@ #include <libqopensync/group.h> namespace QSync { -class Environment; +class GroupEnv; +class PluginEnv; } class SyncProcess; @@ -43,9 +44,14 @@ class SyncProcessManager : public QObject ~SyncProcessManager(); /** - Return OpenSync Environment. + Return OpenSync GroupEnv. */ - QSync::Environment *environment() const { return mEnvironment; } + QSync::GroupEnv *groupEnv() const { return mGroupEnv; } + + /** + Return OpenSync PluginEnv. + */ + QSync::PluginEnv *pluginEnv() const { return mPluginEnv; } /** Returns the number of SyncProcesses. @@ -82,6 +88,11 @@ class SyncProcessManager : public QObject */ QSync::Result addMember( SyncProcess *process, const QSync::Plugin &plugin ); + /** + Removes the @param member from the group of @param process. + */ + void removeMember( SyncProcess *process, const QSync::Member &member ); + signals: void changed(); void syncProcessChanged( SyncProcess *process ); @@ -89,10 +100,12 @@ class SyncProcessManager : public QObject private: SyncProcessManager(); - void init( QSync::Environment *environment ); + void initGroup( QSync::GroupEnv *groupEnv ); +// void initPlugin( QSync::PluginEnv *pluginEnv ); TQValueList<SyncProcess*> mProcesses; - QSync::Environment *mEnvironment; + QSync::GroupEnv *mGroupEnv; + QSync::PluginEnv *mPluginEnv; static SyncProcessManager *mSelf; }; |