~ken-vandine/ubuntu-system-settings/rtm-1387834

« back to all changes in this revision

Viewing changes to plugins/system-update/update_manager.cpp

  • Committer: CI bot
  • Author(s): Ken VanDine
  • Date: 2014-10-29 13:30:49 UTC
  • mfrom: (927.2.2 no_more_checks)
  • Revision ID: ps-jenkins@lists.canonical.com-20141029133049-edrwv0svbgf605d4
* Refactored to use a singleton for UpdateManager shared in both QML and CPP.
* Don't load the dynamic visibility items while creating the item model, defer that to the loader. Fixes: 1317007

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
namespace UpdatePlugin {
41
41
 
 
42
UpdateManager *UpdateManager::m_instance = 0;
 
43
 
 
44
UpdateManager *UpdateManager::instance()
 
45
{
 
46
    if (!m_instance)
 
47
        m_instance = new UpdateManager;
 
48
 
 
49
    return m_instance;
 
50
}
 
51
 
42
52
UpdateManager::UpdateManager(QObject *parent):
43
53
    QObject(parent),
44
54
    m_systemCheckingUpdate(false),