File: ctxparameter.h

package info (click to toggle)
webxml 1.12-3
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 388 kB
  • ctags: 123
  • sloc: cpp: 1,054; xml: 62; makefile: 22
file content (44 lines) | stat: -rw-r--r-- 1,005 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <qstringlist.h> 
class CtxParameter
{
    private:
    QString paramName;
    QString paramValue;
    QString paramDescription;
    public:
    CtxParameter(const QString paramName, const QString paramValue, const QString paramDescription):
	    paramName(paramName),paramValue(paramValue),paramDescription(paramDescription){}
    CtxParameter()
    {
	paramName="";
	paramValue="";
	paramDescription="";
    }
    virtual ~CtxParameter(){}
    QString getParamName()
    {
	return paramName;
    }
    QString getParamValue()
    {
	return paramValue;
    }
    QString getParamDescription()
    {
	return paramDescription;
    }
    QStringList getParams()
    {
	QStringList param;
	param.append(paramName);
	param+=paramValue;
	param+=paramDescription;
	return param;
    } 
    void setParams(const QString paramName, const QString paramValue, const QString paramDescription)
    {
	this->paramName=paramName;
	this->paramValue=paramValue;
	this->paramDescription=paramDescription;
    }
};