~ken-vandine/address-book-app/add_profile

« back to all changes in this revision

Viewing changes to src/imports/Ubuntu/Contacts/plugin.cpp

  • Committer: CI bot
  • Author(s): Tarmac, Renato Araujo Oliveira Filho
  • Date: 2014-07-04 14:55:22 UTC
  • mfrom: (169.22.12 release-2014-07-02)
  • Revision ID: ps-jenkins@lists.canonical.com-20140704145522-7r65oy9m1zarc7yz
* Implemented MostCalledContactsModel in C++ as a proxy model for HistoryEventModel;
* Enabled share button again.
* Fixed build warning: comparison with string literal results in unspecified behavior;
* Implemented swipe to delete. Fixes: 1323577

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2012-2013 Canonical, Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#include "plugin.h"
 
18
#include "mostcalledproxymodel.h"
 
19
 
 
20
#include <QQmlEngine>
 
21
#include <qqml.h>
 
22
 
 
23
void UbuntuContacts::initializeEngine(QQmlEngine *engine, const char *uri)
 
24
{
 
25
    Q_UNUSED(engine);
 
26
    Q_UNUSED(uri);
 
27
}
 
28
 
 
29
void UbuntuContacts::registerTypes(const char *uri)
 
30
{
 
31
    // @uri Ubuntu.Contacts
 
32
    qmlRegisterType<MostCalledContactsModel>(uri, 0, 1, "MostCalledContactsModel");
 
33
}