2
* Copyright (C) 2010, 2011 Tuomo Penttinen, all rights reserved.
4
* Author: Tuomo Penttinen <tp@herqq.org>
6
* This file is part of Herqq UPnP (HUPnP) library.
8
* Herqq UPnP is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU Lesser General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
11
* (at your option) any later version.
13
* Herqq UPnP is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General Public License
19
* along with Herqq UPnP. If not, see <http://www.gnu.org/licenses/>.
25
#include <QtCore/QPair>
26
#include <QtCore/QString>
37
// This file is not part of public API and it should
38
// never be included in client code. The contents of this file may
39
// change or the file may be removed without of notice.
57
SubType_Undefined = 0,
58
SubType_UpnpPropChange = 1
63
QPair<Type, QString> m_typeValue;
64
QPair<SubType, QString> m_subTypeValue;
70
explicit HNt(const QString& type);
71
explicit HNt(const QString& type, const QString& subTybe);
72
explicit HNt(Type type);
74
HNt(Type type, SubType subType);
78
HNt& operator=(const QString& nt);
80
QString typeToString() const;
82
inline Type type() const
84
return m_typeValue.first;
87
QString subTypeToString() const;
89
inline SubType subType() const
91
return m_subTypeValue.first;
94
static QString toString(Type type);
95
static QString toString(SubType subType);