/* * main.cpp * * Created on: Oct 24, 2011 * Author: christian */ //todo: add debug commandline option to allow to use other than memory database //todo: make real daemon out of it- systemd conform #include "RoutingReceiver.h" #include "CommandReceiver.h" #include "ControlReceiver.h" #include "DatabaseHandler.h" #include "ControlSender.h" #include "CommandSender.h" #include "RoutingSender.h" #include "DBusWrapper.h" #include #include DLT_DECLARE_CONTEXT(AudioManager); using namespace am; int main(int argc, char *argv[]) { DLT_REGISTER_APP("AudioManagerDeamon","AudioManagerDeamon"); DLT_REGISTER_CONTEXT(AudioManager,"Main","Main Context"); DLT_LOG(AudioManager,DLT_LOG_INFO, DLT_STRING("The AudioManager is started ")); DatabaseHandler iDatabaseHandler; DBusWrapper iDBusWrapper; CommandReceiver iCommandReceiver(&iDatabaseHandler,&iDBusWrapper); RoutingReceiver iRoutingReceiver; ControlReceiver iControlReceiver(&iDatabaseHandler); RoutingSender iRoutingSender; CommandSender iCommandSender; iCommandSender.startupInterface(&iCommandReceiver); iDBusWrapper.dbusMainLoop(); }