Skip to content

Make data providers singletons

Yari Polla requested to merge work/skilvingr/make-data-providers-singletons into master

At the moment we have 4 (non-graphical objects) data providers registered as QML types in mobileshellplugin.
Given that they get instantiated many times around the code and that:

  • each one of them provides hardware-related data, i.e. with a single instance for each machine;
  • all of them are used within the same thread;
  • all of them are used (through StatusBar and ActionDrawer) in both homescreen and lockscreen.

Would it make sense to make them singletons?

Merge request reports

Loading