1 /* This file is part of the KDE project
3 Copyright (C) 2007 by Javier Goday <jgoday@gmail.com>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
11 #ifndef DBUS_MODEL_OBSERVER_H
12 #define DBUS_MODEL_OBSERVER_H
14 #include "dbustransfergroupobserver.h"
15 #include "core/observer.h"
21 class DBusModelObserver
: public QObject
, public ModelObserver
25 DBusModelObserver(QObject
*parent
= 0);
27 void addedTransferGroupEvent(TransferGroupHandler
*group
);
28 void removedTransferGroupEvent(TransferGroupHandler
*group
);
30 QVariantMap
transfers() const;
31 int transfersSpeed() const;
34 void addTransferHandler(TransferHandler
*handler
);
35 void deleteTransferHandler(TransferHandler
*handler
);
36 void slotTransferGroupChanged(TransferGroupHandler
*handler
);
39 QStringList
getAttributesFromTransfer(TransferHandler
*handler
);
41 QVariantMap m_transfers
;
42 DBusTransferGroupObserver m_transferGroupObserver
;
43 QList
<TransferGroupHandler
*> m_transferGroupHandlers
;