Skip to content

Commit

Permalink
Use mlite and mlocale instead of libmeegotouch
Browse files Browse the repository at this point in the history
mlite as of 0.0.7 supports MNotificationGroup and the rest of the
notification API, so we can drop the libmeegotouch dependency.
  • Loading branch information
John Brooks committed Oct 25, 2012
1 parent bff9f2b commit a7ff47e
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Expand Up @@ -132,13 +132,13 @@ int main(int argc, char **argv)
QObject::connect(snTerm, SIGNAL(activated(int)), &app, SLOT(quit()));
setupSigtermHandler();

MLocale locale;
ML10N::MLocale locale;
locale.installTrCatalog("messaging");
locale.installTrCatalog("telephony");
locale.installTrCatalog("mms");
locale.installTrCatalog("presence");
locale.installTrCatalog("recipientedit");
MLocale::setDefault(locale);
ML10N::MLocale::setDefault(locale);

qDebug() << "Translation catalogs loaded";

Expand Down
4 changes: 2 additions & 2 deletions src/notificationmanager.cpp
Expand Up @@ -836,7 +836,7 @@ void NotificationManager::updateNotificationGroup(const NotificationGroup &group
// get group action
QString groupAction = action(group, notification, grouped);

MLocale tempLocale;
ML10N::MLocale tempLocale;
// update group
if (group.type() != CommHistory::Event::VoicemailEvent && group.type() != VOICEMAIL_SMS_EVENT_TYPE)
name = tempLocale.joinStringList( contactNames(group) );
Expand Down Expand Up @@ -1162,7 +1162,7 @@ QString NotificationManager::contactName(const QString &localUid,
if (normalizePhoneNumber(remoteUid).isEmpty()) {
result = remoteUid;
} else {
MLocale locale;
ML10N::MLocale locale;
result = locale.toLocalizedNumbers(remoteUid);
}
}
Expand Down
5 changes: 3 additions & 2 deletions src/src.pro
Expand Up @@ -37,15 +37,16 @@ MOBILITY += contacts \
CONFIG += debug \
qdbus \
link_pkgconfig \
mobility
mobility \
mlocale

QT += sql \
gui

PKGCONFIG += TelepathyQt4 \
commhistory \
contextsubscriber-1.0 \
meegotouch \
mlite \
qmsystem2

# -----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/textchannellistener.cpp
Expand Up @@ -1317,7 +1317,7 @@ void TextChannelListener::handleMessageFailed(const Tp::ReceivedMessage &message
recipient = event.remoteUid();
} else {
// phone number
MLocale locale;
ML10N::MLocale locale;
recipient = locale.toLocalizedNumbers(event.remoteUid());
recipient.insert(0, QChar(0x202A)); // left-to-right embedding
recipient.append(QChar(0x202C)); // pop directional formatting
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.pri
Expand Up @@ -30,7 +30,7 @@ MOBILITY += contacts versit
CONFIG += mobility
COMMHISTORYDSRCDIR = ../../src
DEPENDPATH += $${INCLUDEPATH}
PKGCONFIG += meegotouch commhistory
PKGCONFIG += mlite commhistory

!include( ../common-installs-config.pri ) : \
error( "Unable to include common-installs-config.pri!" )
Expand Down
2 changes: 1 addition & 1 deletion tests/ut_messagereviver/ut_messagereviver.pro
Expand Up @@ -45,7 +45,7 @@ CONFIG += link_pkgconfig \
mobility
LIBS += -lQtContacts -lQtVersit
PKGCONFIG += contextsubscriber-1.0 \
meegotouch
mlite

TEST_SOURCES += $$COMMHISTORYDSRCDIR/messagereviver.cpp \
connectionutils.cpp
Expand Down
5 changes: 3 additions & 2 deletions tests/ut_notificationmanager/ut_notificationmanager.pro
Expand Up @@ -37,9 +37,10 @@
#-----------------------------------------------------------------------------
TARGET = ut_notificationmanager
CONFIG += link_pkgconfig \
mobility
mobility \
mlocale
PKGCONFIG += contextsubscriber-1.0 \
meegotouch \
mlite \
TelepathyQt4 \
qmsystem2

Expand Down
Expand Up @@ -45,7 +45,7 @@ CONFIG += link_pkgconfig \
mobility
LIBS += -lQtContacts -lQtVersit
PKGCONFIG += contextsubscriber-1.0 \
meegotouch
mlite

TEST_SOURCES += $$COMMHISTORYDSRCDIR/streamchannellistener.cpp \
$$COMMHISTORYDSRCDIR/channellistener.cpp
Expand Down
5 changes: 3 additions & 2 deletions tests/ut_textchannellistener/ut_textchannellistener.pro
Expand Up @@ -42,10 +42,11 @@ INCLUDEPATH = ../stubs/ \

TARGET = ut_textchannellistener
CONFIG += link_pkgconfig \
mobility
mobility \
mlocale
LIBS += -lQtContacts -lQtVersit
PKGCONFIG += contextsubscriber-1.0 \
meegotouch
mlite

TEST_SOURCES += $$COMMHISTORYDSRCDIR/textchannellistener.cpp \
$$COMMHISTORYDSRCDIR/channellistener.cpp
Expand Down

0 comments on commit a7ff47e

Please sign in to comment.