blob: 29ec28576aebc4080b1ea18d8414030ff098a0e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include "ChatWindow.hpp"
#include "LoginWindow.hpp"
#include <gtkmm/window.h>
#include <gtkmm/stack.h>
#include <odhtdb/Database.hpp>
#include <mutex>
namespace dchat
{
class Window : public Gtk::Window
{
public:
Window();
virtual ~Window();
private:
std::unique_ptr<odhtdb::Database> database;
std::mutex databaseCallbackMutex;
Gtk::Stack stack;
LoginWindow loginWindow;
ChatWindow chatWindow;
};
}
|