• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

kremotecontrol

  • sources
  • kde-4.12
  • kdeutils
  • kremotecontrol
  • libkremotecontrol
argument.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Michael Zanetti <michael_zanetti@gmx.net>
3 
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.
8 
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.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 
18 */
19 
20 #include "argument.h"
21 
22 Argument::Argument() {
23 
24 }
25 
26 Argument::Argument(const QVariant& value): m_value(value) {
27 }
28 
29 Argument::Argument(const QVariant& value, const QString& description): m_value(value), m_description(description) {
30 }
31 
32 QVariant Argument::value() const {
33  return m_value;
34 }
35 
36 void Argument::setValue(const QVariant& value) {
37  m_value = value;
38 }
39 
40 QString Argument::description() const {
41  return m_description;
42 }
43 
44 void Argument::setDescription(const QString& description) {
45  m_description = description;
46 }
47 
48 bool Argument::operator==(const Argument& other) const {
49  /* Don't check for value because it breaks comaprison of a configured
50  dbusfunction (with values) and one browsed from dbus (only type and description) */
51  return m_value.type() == other.value().type() &&
52  m_description == other.description();
53 }
54 
Argument
Definition: argument.h:27
Argument::setValue
void setValue(const QVariant &value)
Definition: argument.cpp:36
Argument::m_description
QString m_description
Definition: argument.h:44
Argument::setDescription
void setDescription(const QString &description)
Definition: argument.cpp:44
Argument::description
QString description() const
Definition: argument.cpp:40
Argument::m_value
QVariant m_value
Definition: argument.h:43
Argument::value
QVariant value() const
Definition: argument.cpp:32
Argument::operator==
bool operator==(const Argument &other) const
Definition: argument.cpp:48
argument.h
Argument::Argument
Argument()
Definition: argument.cpp:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kremotecontrol

Skip menu "kremotecontrol"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal