aboutsummaryrefslogtreecommitdiff
path: root/include/Window.hpp
blob: 96197c65bc6365dcfa1e4345257706763ac2da0f (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();
    protected:
        std::unique_ptr<odhtdb::Database> database;
        std::mutex databaseCallbackMutex;
        Gtk::Stack stack;
        LoginWindow loginWindow;
        ChatWindow chatWindow;
    };
}