refactoring: UI squawk now belongs to a new class, it enables me doing trayed mode, when main window is destroyed
This commit is contained in:
parent
83cb220175
commit
721d3a1a89
16 changed files with 908 additions and 769 deletions
|
@ -42,18 +42,11 @@
|
|||
#include <QProcess>
|
||||
#include <QDesktopServices>
|
||||
#include <QRegularExpression>
|
||||
#include <QDBusInterface>
|
||||
|
||||
class Squawk;
|
||||
namespace Models {
|
||||
class Roster;
|
||||
}
|
||||
|
||||
namespace Shared {
|
||||
|
||||
class Global {
|
||||
Q_DECLARE_TR_FUNCTIONS(Global)
|
||||
friend class ::Squawk;
|
||||
public:
|
||||
struct FileInfo {
|
||||
enum class Preview {
|
||||
|
@ -71,8 +64,6 @@ namespace Shared {
|
|||
|
||||
Global();
|
||||
|
||||
static void notify(const QString& account, const Shared::Message& msg);
|
||||
|
||||
static Global* getInstance();
|
||||
static QString getName(Availability av);
|
||||
static QString getName(ConnectionState cs);
|
||||
|
@ -130,8 +121,6 @@ namespace Shared {
|
|||
|
||||
private:
|
||||
static Global* instance;
|
||||
Models::Roster* rosterModel;
|
||||
QDBusInterface dbus;
|
||||
|
||||
std::map<QString, bool> pluginSupport;
|
||||
std::map<QString, FileInfo> fileCache;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue