1
/***************************************************************************
2
* Copyright 2010 Artur Duque de Souza <asouza@kde.org> *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License as published by *
6
* the Free Software Foundation; either version 2 of the License, or *
7
* (at your option) any later version. *
9
* This program is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
14
* You should have received a copy of the GNU General Public License *
15
* along with this program; if not, write to the *
16
* Free Software Foundation, Inc., *
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
18
***************************************************************************/
20
#ifndef SHARE_SERVICE_H
21
#define SHARE_SERVICE_H
23
#include "shareengine.h"
25
#include <Plasma/Service>
26
#include <Plasma/ServiceJob>
39
class ShareService : public Plasma::Service
44
ShareService(ShareEngine *engine);
45
Plasma::ServiceJob *createJob(const QString &operation,
46
QMap<QString, QVariant> ¶meters);
49
class ShareJob : public Plasma::ServiceJob
54
ShareJob(const QString &destination, const QString &operation,
55
QMap<QString, QVariant> ¶meters, QObject *parent = 0);
61
void showResult(const QString &url);
62
void showError(const QString &msg);
65
Kross::Action *m_action;
66
ShareProvider *m_provider;
67
Plasma::Package *m_package;
70
#endif // SHARE_SERVICE