From d390ea2df6a37670d6ca2a4443bae2f2efee59e3 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 30 Oct 2015 11:14:15 +0100 Subject: [PATCH] Added so-far empty service root node classes. --- CMakeLists.txt | 2 ++ src/services/abstract/serviceroot.cpp | 2 +- src/services/abstract/serviceroot.h | 10 +++++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a41b733be..ce27c7ea2 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -428,9 +428,11 @@ set(APP_SOURCES src/services/standard/gui/formstandardfeeddetails.cpp src/services/standard/gui/formstandardimportexport.cpp src/services/standard/standardserviceentrypoint.cpp + src/services/standard/standardserviceroot.cpp # TT-RSS feed service sources. src/services/tt-rss/ttrssserviceentrypoint.cpp + src/services/tt-rss/ttrssserviceroot.cpp # NETWORK-WEB sources. src/network-web/basenetworkaccessmanager.cpp diff --git a/src/services/abstract/serviceroot.cpp b/src/services/abstract/serviceroot.cpp index 0d437c68c..109f00ead 100755 --- a/src/services/abstract/serviceroot.cpp +++ b/src/services/abstract/serviceroot.cpp @@ -18,7 +18,7 @@ #include "services/abstract/serviceroot.h" -ServiceRoot::ServiceRoot() { +ServiceRoot::ServiceRoot(RootItem *parent) : RootItem(parent) { } ServiceRoot::~ServiceRoot() { diff --git a/src/services/abstract/serviceroot.h b/src/services/abstract/serviceroot.h index 41b318e60..1355f1fb7 100755 --- a/src/services/abstract/serviceroot.h +++ b/src/services/abstract/serviceroot.h @@ -18,11 +18,15 @@ #ifndef SERVICEROOT_H #define SERVICEROOT_H +#include "core/rootitem.h" + + // THIS IS the root node of the service. -// TODO: Inherit proper base root class for this. -class ServiceRoot { +// NOTE: The root usually contains some core functionality of the +// service like service account username/password etc. +class ServiceRoot : public RootItem { public: - explicit ServiceRoot(); + explicit ServiceRoot(RootItem *parent = NULL); virtual ~ServiceRoot(); };