• Skip to content
  • Skip to link menu
  • KDE API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • KTp
  • Declarative
qml-plugins.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011 Lasath Fernando <kde@lasath.org>
3  Copyright (C) 2013 Dan Vrátil <dvratil@redhat.com>
4  Copyright (C) 2013 Aleix Pol Gonzalez <aleixpol@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with this library; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 
22 #include "qml-plugins.h"
23 
24 #include <QtDeclarative/QDeclarativeItem>
25 
26 #include "contact-list.h"
27 #include "conversation.h"
28 #include "conversations-model.h"
29 #include "conversation-target.h"
30 #include "hide-window-component.h"
31 #include "messages-model.h"
32 #include "telepathy-text-observer.h"
33 #include "pinned-contacts-model.h"
34 #include "contact-pin.h"
35 #include "filtered-pinned-contacts-proxy-model.h"
36 #include "declarative-ktp-actions.h"
37 
38 #include "Models/contacts-filter-model.h"
39 
40 void QmlPlugins::registerTypes(const char *uri)
41 {
42  qmlRegisterType<ContactList> (uri, 0, 1, "ContactList");
43  qmlRegisterType<TelepathyTextObserver> (uri, 0, 1, "TelepathyTextObserver");
44  qmlRegisterType<Conversation>(uri, 0, 1, "Conversation");
45  qmlRegisterType<HideWindowComponent>(uri, 0, 1, "HideWindowComponent");
46  qmlRegisterType<PinnedContactsModel>(uri, 0, 1, "PinnedContactsModel");
47  qmlRegisterType<ContactPin>(uri, 0, 1, "ContactPin");
48  qmlRegisterType<FilteredPinnedContactsProxyModel>(uri, 0, 1, "FilteredPinnedContactsProxyModel");
49  qmlRegisterType<DeclarativeKTpActions>(uri, 0, 1, "DeclarativeKTpActions");
50 
51  qmlRegisterUncreatableType<KTp::ContactsFilterModel> (uri, 0, 1, "AccountsFilterModel",
52  QLatin1String("Filter cannot be created. Access through ContactList.filter"));
53  qmlRegisterUncreatableType<MessagesModel> (uri, 0, 1, "MessagesModel",
54  QLatin1String("It will be created once the conversation is created"));
55 
56  qmlRegisterType<ConversationTarget>();
57  qmlRegisterType<ConversationsModel>();
58  qRegisterMetaType<Tp::AccountManagerPtr>();
59  qRegisterMetaType<KTp::ContactPtr>();
60  qRegisterMetaType<Tp::AccountPtr>();
61 }
62 
63 Q_EXPORT_PLUGIN2(conversation, QmlPlugins);
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktp-common-internals API Reference

Skip menu "ktp-common-internals API Reference"
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal