~ubuntu-branches/ubuntu/oneiric/kde4libs/oneiric-proposed

« back to all changes in this revision

Viewing changes to plasma/private/storage_p.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-07-08 00:08:34 UTC
  • mto: This revision was merged to the branch mainline in revision 247.
  • Revision ID: package-import@ubuntu.com-20110708000834-dr9a8my4iml90qe5
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <plasma/service.h>
29
29
#include <plasma/servicejob.h>
30
30
 
31
 
class RefCountedDatabase;
32
 
 
33
31
//Begin StorageJob
34
32
class StorageJob : public Plasma::ServiceJob
35
33
{
40
38
               const QMap<QString, QVariant>& parameters,
41
39
               QObject *parent = 0);
42
40
    ~StorageJob();
 
41
    void setData(const QVariantHash &data);
 
42
    QVariantHash data() const;
43
43
    void start();
 
44
    QString clientName() const;
 
45
 
 
46
protected Q_SLOTS:
 
47
    void resultSlot(StorageJob *job, const QVariant &result);
 
48
 
44
49
private:
45
 
    RefCountedDatabase *m_rdb;
46
50
    QString m_clientName;
 
51
    QVariantHash m_data;
47
52
};
48
53
//End StorageJob
49
54
 
 
55
Q_DECLARE_METATYPE(StorageJob *)
 
56
Q_DECLARE_METATYPE(QWeakPointer<StorageJob>)
 
57
 
50
58
class Storage : public Plasma::Service
51
59
{
52
60
    Q_OBJECT
53
61
 
54
62
public:
55
 
    Storage(QObject* parent);
 
63
    Storage(QObject *parent = 0);
56
64
    ~Storage();
57
65
 
58
66
protected: