From 5177db6d63e48e7ff6ee9ffcef2dee9d77b80075 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 19 Jan 2016 17:23:23 +0100 Subject: Re-introduce tree structure: Allow server-defined sections --- src/vsession.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vsession.h') diff --git a/src/vsession.h b/src/vsession.h index 22f3a94..34c7457 100644 --- a/src/vsession.h +++ b/src/vsession.h @@ -39,6 +39,13 @@ class VSession : public Session { return getAttribute("os"); } + QString section() const { + QString attr = getAttribute("section"); + if (!attr.isEmpty()) + return attr; + return QObject::tr("Priority: ").append(QString::number(priority())); + } + QString getAttribute(const QString& nodeName, const QString& attribute = "param") const; QList keywords() const; -- cgit v1.2.3-55-g7522