• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libplasma

servicejob.cpp

Go to the documentation of this file.
00001 /*
00002  *   Copyright 2008 Aaron Seigo <aseigo@kde.org>
00003  *
00004  *   This program is free software; you can redistribute it and/or modify
00005  *   it under the terms of the GNU Library General Public License as
00006  *   published by the Free Software Foundation; either version 2, or
00007  *   (at your option) any later version.
00008  *
00009  *   This program is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *   GNU General Public License for more details
00013  *
00014  *   You should have received a copy of the GNU Library General Public
00015  *   License along with this program; if not, write to the
00016  *   Free Software Foundation, Inc.,
00017  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018  */
00019 
00020 #include "servicejob.h"
00021 
00022 namespace Plasma
00023 {
00024 
00025 class ServiceJobPrivate
00026 {
00027 public:
00028     ServiceJobPrivate(const QString &dest, const QString &op, const QMap<QString, QVariant> &params)
00029         : destination(dest),
00030           operation(op),
00031           parameters(params)
00032     {
00033     }
00034     QString destination;
00035     QString operation;
00036     QMap<QString, QVariant> parameters;
00037     QVariant result;
00038 };
00039 
00040 ServiceJob::ServiceJob(const QString &destination, const QString &operation,
00041                        const QMap<QString, QVariant> &parameters, QObject *parent)
00042     : KJob(parent),
00043       d(new ServiceJobPrivate(destination, operation, parameters))
00044 {
00045 }
00046 
00047 ServiceJob::~ServiceJob()
00048 {
00049     delete d;
00050 }
00051 
00052 QString ServiceJob::destination() const
00053 {
00054     return d->destination;
00055 }
00056 
00057 QString ServiceJob::operationName() const
00058 {
00059     return d->operation;
00060 }
00061 
00062 QMap<QString, QVariant> ServiceJob::parameters() const
00063 {
00064     return d->parameters;
00065 }
00066 
00067 QVariant ServiceJob::result() const
00068 {
00069     return d->result;
00070 }
00071 
00072 void ServiceJob::setResult(const QVariant &result)
00073 {
00074     d->result = result;
00075 }
00076 
00077 } // namespace Plasma
00078 
00079 #include "servicejob.moc"
00080 

libplasma

Skip menu "libplasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal