~phablet-team/telephony-service/staging

« back to all changes in this revision

Viewing changes to libtelephonyservice/telepathyhelper.cpp

  • Committer: Gustavo Pichorim Boiko
  • Date: 2016-11-11 14:02:04 UTC
  • mfrom: (1232.1.1 mms_settings)
  • Revision ID: gustavo.boiko@canonical.com-20161111140204-ff3wjf3ofqvunwle
Replace the mms group option by mms enabled as groups are created in a different way now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
    connect(GreeterContacts::instance(), SIGNAL(phoneSettingsChanged(QString)), this, SLOT(onPhoneSettingsChanged(QString)));
99
99
    connect(&mFlightModeInterface, SIGNAL(FlightModeChanged(bool)), this, SIGNAL(flightModeChanged()));
100
100
 
101
 
    mMmsGroupChat = GreeterContacts::instance()->mmsGroupChatEnabled(); 
 
101
    mMmsEnabled = GreeterContacts::instance()->mmsEnabled();
102
102
}
103
103
 
104
104
TelepathyHelper::~TelepathyHelper()
130
130
    return ids;
131
131
}
132
132
 
133
 
void TelepathyHelper::setMmsGroupChat(bool enable)
 
133
void TelepathyHelper::setMmsEnabled(bool enable)
134
134
{
135
 
    GreeterContacts::instance()->setMmsGroupChatEnabled(enable);
 
135
    GreeterContacts::instance()->setMmsEnabled(enable);
136
136
}
137
137
 
138
 
bool TelepathyHelper::mmsGroupChat()
 
138
bool TelepathyHelper::mmsEnabled()
139
139
{
140
 
    return mMmsGroupChat;
 
140
    return mMmsEnabled;
141
141
}
142
142
 
143
143
bool TelepathyHelper::flightMode()
624
624
        }
625
625
        mDefaultCallAccount = NULL;
626
626
        Q_EMIT defaultCallAccountChanged();
627
 
    } else if (key == "MmsGroupChatEnabled") {
628
 
        mMmsGroupChat = GreeterContacts::instance()->mmsGroupChatEnabled(); 
629
 
        Q_EMIT mmsGroupChatChanged();
 
627
    } else if (key == "MmsEnabled") {
 
628
        mMmsEnabled = GreeterContacts::instance()->mmsEnabled();
 
629
        Q_EMIT mmsEnabledChanged();
630
630
    } else if (key == "SimNames") {
631
631
        mSimNames = GreeterContacts::instance()->simNames();
632
632
        Q_EMIT simNamesChanged();