summaryrefslogtreecommitdiff
path: root/plugins/WinterSpeak/src/AnnounceDialog.h
blob: 3a3da28f9aa3233765dc5aa02fa9931174406aa3 (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
25
26
27
28
29
30
#pragma once
#include "mirandadialog.h"
#include "AnnounceDatabase.h"

class AnnounceDialog : public MirandaDialog
{
  public:
	AnnounceDialog(AnnounceDatabase &db);
	~AnnounceDialog();

	//--------------------------------------------------------------------------
	// Description : process a dialog message
	// Return      : true - update the systems configuration
	//               false - do nothing
	//--------------------------------------------------------------------------
    static INT_PTR CALLBACK process(HWND window, UINT message, WPARAM wparam, LPARAM lparam);

  private:
    void command(HWND window, int control);

	//--------------------------------------------------------------------------
	// Description : load/save settings to the miranda database
	//--------------------------------------------------------------------------
	void load(HWND window);
	void save(HWND window);

    static AnnounceDialog *m_instance;
	AnnounceDatabase      &m_db;
};