Commit e35927d1 authored by Wescoeur's avatar Wescoeur

fix(App): register `linphone::ProxyConfig` to avoid unusable type in qml (close #41)

parent 76e660bb
......@@ -321,11 +321,6 @@ void App::createParser () {
"Linphone", 1, 0, NAME, NAME " is uncreatable." \
)
template<class T>
void registerMetaType (const char *name) {
qRegisterMetaType<T>(name);
}
template<class T>
void registerSingletonType (const char *name) {
qmlRegisterSingletonType<T>("Linphone", 1, 0, name, [](QQmlEngine *engine, QJSEngine *) -> QObject *{
......@@ -357,6 +352,9 @@ void registerToolType (const char *name) {
void App::registerTypes () {
qInfo() << QStringLiteral("Registering types...");
qRegisterMetaType<std::shared_ptr<linphone::ProxyConfig> >();
qRegisterMetaType<ChatModel::EntryType>();
registerType<AssistantModel>("AssistantModel");
registerType<AuthenticationNotifier>("AuthenticationNotifier");
registerType<CallsListProxyModel>("CallsListProxyModel");
......@@ -377,8 +375,6 @@ void App::registerTypes () {
registerSingletonType<UrlHandlers>("UrlHandlers");
registerSingletonType<VideoCodecsModel>("VideoCodecsModel");
registerMetaType<ChatModel::EntryType>("ChatModel::EntryType");
registerUncreatableType(CallModel, "CallModel");
registerUncreatableType(ChatModel, "ChatModel");
registerUncreatableType(ConferenceHelperModel::ConferenceAddModel, "ConferenceAddModel");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment