/*
 * Copyright © 2016 Canonical Ltd.
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authored by: Alexandros Frantzis <alexandros.frantzis@canonical.com>
 */

#pragma once

#include "core/daemon_config.h"

namespace repowerd
{

class Backlight;
class BacklightBrightnessControl;
class BrightnessNotification;
class Chrono;
class DeviceConfig;
class DeviceQuirks;
class Filesystem;
class LightSensor;
class LscDisplay;
class LscPowerButton;
class OfonoVoiceCallService;
class TemporarySuspendInhibition;
class UnityScreenService;
class UPowerPowerSourceAndLid;
class WakeupService;

class DefaultDaemonConfig : public DaemonConfig
{
public:
    std::shared_ptr<DisplayInformation> the_display_information() override;
    std::shared_ptr<BrightnessControl> the_brightness_control() override;
    std::shared_ptr<ClientRequests> the_client_requests() override;
    std::shared_ptr<ClientSettings> the_client_settings() override;
    std::shared_ptr<DisplayPowerControl> the_display_power_control() override;
    std::shared_ptr<DisplayPowerEventSink> the_display_power_event_sink() override;
    std::shared_ptr<Lid> the_lid() override;
    std::shared_ptr<Log> the_log() override;
    std::shared_ptr<ModemPowerControl> the_modem_power_control() override;
    std::shared_ptr<NotificationService> the_notification_service() override;
    std::shared_ptr<PerformanceBooster> the_performance_booster() override;
    std::shared_ptr<PowerButton> the_power_button() override;
    std::shared_ptr<PowerButtonEventSink> the_power_button_event_sink() override;
    std::shared_ptr<PowerSource> the_power_source() override;
    std::shared_ptr<ProximitySensor> the_proximity_sensor() override;
    std::shared_ptr<SessionTracker> the_session_tracker() override;
    std::shared_ptr<StateMachineFactory> the_state_machine_factory() override;
    std::shared_ptr<StateMachineOptions> the_state_machine_options() override;
    std::shared_ptr<SystemPowerControl> the_system_power_control() override;
    std::shared_ptr<Timer> the_timer() override;
    std::shared_ptr<UserActivity> the_user_activity() override;
    std::shared_ptr<VoiceCallService> the_voice_call_service() override;

    std::shared_ptr<Backlight> the_backlight();
    std::shared_ptr<BacklightBrightnessControl> the_backlight_brightness_control();
    std::shared_ptr<BrightnessNotification> the_brightness_notification();
    std::shared_ptr<Chrono> the_chrono();
    std::string the_dbus_bus_address();
    std::shared_ptr<DeviceConfig> the_device_config();
    std::shared_ptr<DeviceQuirks> the_device_quirks();
    std::shared_ptr<Filesystem> the_filesystem();
    std::shared_ptr<LightSensor> the_light_sensor();
    std::shared_ptr<LscDisplay> the_lsc_display();
    std::shared_ptr<LscPowerButton> the_lsc_power_button();
    std::shared_ptr<OfonoVoiceCallService> the_ofono_voice_call_service();
    std::shared_ptr<TemporarySuspendInhibition> the_temporary_suspend_inhibition();
    std::shared_ptr<UnityScreenService> the_unity_screen_service();
    std::shared_ptr<UPowerPowerSourceAndLid> the_upower_power_source_and_lid();
    std::shared_ptr<WakeupService> the_wakeup_service();

private:
    std::shared_ptr<DisplayInformation> display_information;
    std::shared_ptr<Backlight> backlight;
    std::shared_ptr<BacklightBrightnessControl> backlight_brightness_control;
    std::shared_ptr<BrightnessControl> brightness_control;
    std::shared_ptr<BrightnessNotification> brightness_notification;
    std::shared_ptr<Chrono> chrono;
    std::shared_ptr<ClientSettings> client_settings;
    std::shared_ptr<DeviceConfig> device_config;
    std::shared_ptr<DeviceQuirks> device_quirks;
    std::shared_ptr<Filesystem> filesystem;
    std::shared_ptr<LightSensor> light_sensor;
    std::shared_ptr<LscDisplay> lsc_display;
    std::shared_ptr<LscPowerButton> lsc_power_button;
    std::shared_ptr<Log> log;
    std::shared_ptr<ModemPowerControl> modem_power_control;
    std::shared_ptr<OfonoVoiceCallService> ofono_voice_call_service;
    std::shared_ptr<PerformanceBooster> performance_booster;
    std::shared_ptr<ProximitySensor> proximity_sensor;
    std::shared_ptr<SessionTracker> session_tracker;
    std::shared_ptr<StateMachineFactory> state_machine_factory;
    std::shared_ptr<StateMachineOptions> state_machine_options;
    std::shared_ptr<SystemPowerControl> system_power_control;
    std::shared_ptr<Timer> timer;
    std::shared_ptr<TemporarySuspendInhibition> temporary_suspend_inhibition;
    std::shared_ptr<UnityScreenService> unity_screen_service;
    std::shared_ptr<UPowerPowerSourceAndLid> upower_power_source_and_lid;
    std::shared_ptr<UserActivity> user_activity;
    std::shared_ptr<WakeupService> wakeup_service;
};

}

