Make data providers singletons
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
andActionDrawer
) in both homescreen and lockscreen.
Would it make sense to make them singletons?