providers/remote/skeleton.h
Go to the documentation of this file.
/*
* Copyright © 2014 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authored by: Thomas Voß <thomas.voss@canonical.com>
*/
#ifndef LOCATION_SERVICE_COM_LOMIRI_LOCATION_SERVICE_PROVIDERS_REMOTE_SKELETON_H_
#define LOCATION_SERVICE_COM_LOMIRI_LOCATION_SERVICE_PROVIDERS_REMOTE_SKELETON_H_
#include <com/lomiri/location/provider.h>
namespace core { namespace dbus {
class Bus;
class Object;
}}
namespace com
{
namespace lomiri
{
namespace location
{
namespace providers
{
namespace remote
{
namespace skeleton
{
struct Configuration
{
std::shared_ptr<core::dbus::Object> object;
std::shared_ptr<core::dbus::Bus> bus;
Provider::Ptr provider;
};
Provider::Ptr create_with_configuration(const Configuration& configuration);
}
}
}
}
}
}
#endif // LOCATION_SERVICE_COM_LOMIRI_LOCATION_SERVICE_PROVIDERS_REMOTE_SKELETON_H_
com::lomiri::location::Provider::Ptr
std::shared_ptr< Provider > Ptr
Definition provider.h:48
com::lomiri::location::providers::remote::skeleton
Definition providers/remote/skeleton.h:39
com::lomiri::location::providers::remote::skeleton::create_with_configuration
Provider::Ptr create_with_configuration(const Configuration &configuration)
Create a stub instance referring to a remote provider instance.
com::lomiri::location::providers::remote
Definition providers/remote/interface.h:45
com::lomiri::location::providers
Definition providers/remote/interface.h:43
com::lomiri::location
Definition accuracy.h:28
com::lomiri
Definition accuracy.h:26
com
Definition accuracy.h:24
core::dbus
Definition codec.h:41
core
Definition codec.h:39
provider.h
com::lomiri::location::providers::remote::skeleton::Configuration
All creation time arguments go here.
Definition providers/remote/skeleton.h:42
com::lomiri::location::providers::remote::skeleton::Configuration::provider
Provider::Ptr provider
The actual provider implementation.
Definition providers/remote/skeleton.h:48
com::lomiri::location::providers::remote::skeleton::Configuration::bus
std::shared_ptr< core::dbus::Bus > bus
The bus connection for handling incoming requests.
Definition providers/remote/skeleton.h:46
com::lomiri::location::providers::remote::skeleton::Configuration::object
std::shared_ptr< core::dbus::Object > object
Remote object that should implement remote::Interface.
Definition providers/remote/skeleton.h:44