From 96a8d7189902921a54f3d1fcbf39f62e8b9b41c4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 3 Jan 2016 21:30:43 +0000 Subject: Re-namespace service --- gentoobrowse-api/service/main.cpp | 4 ++++ gentoobrowse-api/service/portageimpl.cpp | 4 ++++ gentoobrowse-api/service/portageimpl.h | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/gentoobrowse-api/service/main.cpp b/gentoobrowse-api/service/main.cpp index 21473af..1429a72 100644 --- a/gentoobrowse-api/service/main.cpp +++ b/gentoobrowse-api/service/main.cpp @@ -3,6 +3,8 @@ #include #include "portageimpl.h" +namespace Gentoo { +namespace Service { class Api : public IceTray::Service { public: void addObjects(const std::string &, const Ice::CommunicatorPtr & ic, const Ice::StringSeq &, const Ice::ObjectAdapterPtr & adp) override @@ -13,4 +15,6 @@ class Api : public IceTray::Service { }; NAMEDFACTORY("default", Api, IceTray::ServiceFactory); +} +} diff --git a/gentoobrowse-api/service/portageimpl.cpp b/gentoobrowse-api/service/portageimpl.cpp index 291e903..a3f499e 100644 --- a/gentoobrowse-api/service/portageimpl.cpp +++ b/gentoobrowse-api/service/portageimpl.cpp @@ -17,6 +17,8 @@ #include #include +namespace Gentoo { +namespace Service { Portage::Portage(boost::shared_ptr> d) : IceTray::AbstractDatabaseClient(d) { @@ -123,4 +125,6 @@ Portage::getNewsRecent(Ice::Int items, const Ice::Current &) { return fetch(items); } +} +} diff --git a/gentoobrowse-api/service/portageimpl.h b/gentoobrowse-api/service/portageimpl.h index d36cb70..980aeb3 100644 --- a/gentoobrowse-api/service/portageimpl.h +++ b/gentoobrowse-api/service/portageimpl.h @@ -5,6 +5,8 @@ #include #include +namespace Gentoo { +namespace Service { class DLL_PUBLIC Portage : public Gentoo::Portage, IceTray::AbstractDatabaseClient { public: Portage(boost::shared_ptr> d); @@ -30,6 +32,8 @@ class DLL_PUBLIC Portage : public Gentoo::Portage, IceTray::AbstractDatabaseClie Gentoo::News getNewsSearch(const std::string &, const Ice::Current &) override; Gentoo::News getNewsRecent(Ice::Int, const Ice::Current &) override; }; +} +} #endif -- cgit v1.2.3