00001 /* 00002 * Universidade Federal de Campina Grande 00003 * Centro de Engenharia Elétrica e Informática 00004 * Laboratório de Sistemas Embarcados e Computação Pervasiva 00005 * BRisa Project / BRisa-Qt - http://brisa.garage.maemo.org 00006 * Filename: brisaargument.cpp 00007 * Created: 00008 * Description: Implements the BrisaArgument class. 00009 * Authors: Name <email> @since 2009 00010 * 00011 * 00012 * Copyright (C) <2009> <Embbeded Systems and Pervasive Computing Laboratory> 00013 * 00014 * BRisa-Qt is free software: you can redistribute it and/or modify 00015 * it under the terms of the GNU Lesser General Public License as 00016 * published by the Free Software Foundation, either version 3 of 00017 * the License, or (at your option) any later version. 00018 * 00019 * This program is distributed in the hope that it will be useful, 00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 * GNU General Public License for more details. 00023 * 00024 * You should have received a copy of the GNU Lesser General Public License 00025 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00026 * 00027 */ 00028 #ifndef _BRISAARGUMENT_H 00029 #define _BRISAARGUMENT_H 00030 00031 #include <QObject> 00032 #include <QString> 00033 00034 #include "brisaglobal.h" 00035 00036 namespace BrisaUpnp { 00037 00045 class BRISA_UPNP_EXPORT BrisaArgument { 00046 public: 00047 00054 BrisaArgument(const QString &name = "", const QString &direction = "", 00055 const QString &relatedStateVariable = ""); 00056 00057 typedef enum { 00058 ArgumentName, Direction, RelatedStateVariable 00059 } xmlArgument; 00060 00066 void setAttribute(xmlArgument key, const QString &value); 00067 00073 QString getAttribute(xmlArgument key) const; 00074 00080 void clear(); 00081 00082 private: 00083 QString name; 00084 QString direction; 00085 QString relatedStateVariable; 00086 }; 00087 00088 } 00089 00090 #endif /* BRISAARGUMENT_H_ */
1.6.3