std::string AddEvent(IThemeEvent& ev);
int RemoveEvent(const std::string& id);
- std::string[] QueryThemeId();
+ std::vector<std::string> QueryThemeId();
void SetCurrent(const std::string& id);
std::shared_ptr<ThemeInfo> LoadCurrent() const;
std::shared_ptr<ThemeInfo> Load(const std::string& id) const;
#include "theme_info_builder.h"\r
\r
namespace ttm {\r
+namespace plugin {\r
\r
ThemeInfoBuilder::ThemeInfoBuilder(std::string id) {\r
\r
return info;\r
}\r
\r
+} // namespace plugin\r
} // namespace ttm
\ No newline at end of file
#include "theme/loader/theme_info.h"\r
\r
namespace ttm {\r
+namespace plugin {\r
\r
class ThemeInfoBuilder {\r
public:\r
\r
};\r
\r
+} // namespace plugin\r
} // namespace ttm\r
\r
#endif // THEME_PLUGIN_THEME_INFO_BUILDER_H_\r
#include "theme/loader/theme_info.h"\r
\r
namespace ttm {\r
+namespace plugin {\r
\r
loader::ThemeInfo ThemeParser::Inflate(std::string json) {\r
loader::ThemeInfo info("id", "0.1", "0.1", "title", "resolution", "preview",\r
return 0;\r
}\r
\r
+} // namesapce plugin\r
} // namespace ttm
\ No newline at end of file
#include "theme/loader/theme_info.h"\r
\r
namespace ttm {\r
+namespace plugin {\r
\r
class ThemeParser {\r
public:\r
int Commit(ThemeOperation operation, const loader::ThemeInfo& theme);\r
};\r
\r
+} // namespace plugin\r
} // namespace ttm\r
\r
#endif // THEME_PLUGIN_THEME_PARSER_H_\r
#include <bundle_cpp.h>
namespace ttm {
+namespace provider {
using namespace dbus;
return {};
}
+} // namespace provider
} // namespace ttm
#include "theme/dbus/request_handler.h"
namespace ttm {
+namespace provider {
class ThemeInfoProxy;
std::shared_ptr<ThemeInfoProxy> proxy_;
};
+} // namespace provider
} // namespace ttm
#endif // THEME_PROVIDER_CONTROL_REQUEST_HANDLER_H_
#include <string>
namespace ttm {
+namespace provider {
bool DbManager::Insert(const std::string& id, const tizen_base::Bundle& info) {
return true;
listeners_.emplace_back(listener);
}
-
+} // namespace provider
} // namespace ttm
#include <vector>
namespace ttm {
+namespace provider {
class IThemePackageEvent {
public:
+ virtual ~IThemePackageEvent() = default;
virtual void OnThemePackageChanged(const std::string& id) = 0;
};
std::vector<std::shared_ptr<IThemePackageEvent>> listeners_;
};
+} // namespace provider
} // namespace ttm
#endif // THEME_PROVIDER_DB_MANAGER_H_
#include <bundle_cpp.h>
namespace ttm {
+namespace provider {
tizen_base::Bundle PackageEventRequestHandler::OnRequest(dbus::Command cmd,
const tizen_base::Bundle& args) {
return {};
}
+} // namespace provider
} // namespace ttm
#include "theme/dbus/request_handler.h"
namespace ttm {
+namespace provider {
class ThemeInfoProxy;
std::shared_ptr<ThemeInfoProxy> proxy_;
};
+} // namespace provider
} // namespace ttm
#endif // THEME_PROVIDER_PACKAGE_EVENT_REQUEST_HANDLER_H_
#include <bundle_cpp.h>
namespace ttm {
+namespace provider {
using namespace dbus;
return {};
}
+} // namespace provider
} // namespace ttm
#include "theme/dbus/request_handler.h"
namespace ttm {
+namespace provider {
class ThemeInfoProxy;
std::shared_ptr<ThemeInfoProxy> proxy_;
};
+} // namespace provider
} // namespace ttm
#endif // THEME_PROVIDER_SELECTION_REQUEST_HANDLER_H_
#include "theme_provider/sqlite_statement.h"
namespace ttm {
+namespace provider {
SQLiteConnection::SQLiteConnection(std::string path, bool readonly)
: path_(std::move(path)), db_(nullptr) {
return false;
}
+} // namesapce provider
} // namespace ttm
#include <string>
namespace ttm {
+namespace provider {
class SQLiteTransaction;
class SQLiteStatement;
int error_code_;
};
+} // namespace provider
} // namespace ttm
#endif // THEME_PROVIDER_SQLITE_CONNECTION_H_
#include "theme_provider/sqlite_connection.h"
namespace ttm {
+namespace provider {
SQLiteStatement::SQLiteStatement(std::shared_ptr<SQLiteConnection> sql_conn,
sqlite3_stmt* stmt) : sql_conn_(sql_conn), stmt_(stmt) {}
return sqlite3_errmsg(sqlite3_db_handle(stmt_));
}
+} // namespace provider
} // namespace ttm
#include <string>
namespace ttm {
+namespace provider {
class SQLiteConnection;
sqlite3_stmt* stmt_;
};
+} // namespace provider
} // namespace ttm
#endif // THEME_PROVIDER_SQLITE_STATEMENT_H_
#include "theme_provider/sqlite_connection.h"
namespace ttm {
+namespace provider {
void SQLiteTransaction::lock() const {
sql_conn_->BeginTransaction();
sql_conn_->RollbackTransaction();
}
+} // namespace provider
} // namespace ttm
#define THEME_PROVIDER_SQLITE_TRANSACTION_H_
namespace ttm {
+namespace provider {
class SQLiteConnection;
SQLiteConnection* sql_conn_;
};
+} // namespace provider
} // namespace ttm
#endif // THEME_PROVIDER_SQLITE_TRANSACTION_H_
#include "theme/loader/theme_info.h"
namespace ttm {
+namespace provider {
class ThemeInfo;
void OnThemePackageChanged(const std::string& id) {
}
+} // namespace provider
} // namespace ttm
#include "theme_provider/db_manager.h"
namespace ttm {
+namespace provider {
class ThemeInfo;
void OnThemePackageChanged(const std::string& id) override;
};
+} // namespace provider
} // namespace ttm
#endif // THEME_PROVIDER_THEME_INFO_PROXY_H_