File: CDlgAuthentication.hh

package info (click to toggle)
fireflier 1.1.6-3etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,348 kB
  • ctags: 1,167
  • sloc: sh: 9,023; cpp: 8,370; makefile: 437; ansic: 300
file content (55 lines) | stat: -rw-r--r-- 1,197 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// generated 2002/10/6 15:34:21 CEST by triendl.kj@triendl.kj.(none)
// using glademm V1.1.1c_cvs
//
// newer (non customized) versions of this file go to CDlgAuthentication.hh_new

// you might replace
//    class foo : public foo_glade { ... };
// by
//    typedef foo_glade foo;
// if you didn't make any modifications to the widget

#ifndef _CDLGAUTHENTICATION_HH
#define _CDLGAUTHENTICATION_HH

#include <gtkmm.h>
#include "fireflierIO.h"
#include "dispatcher.h"


class CDlgAuthentication: public Gtk::Window
{
private:
	Dispatcher1 <bool> m_signalConnection;
	Dispatcher1 <int> m_signalAuthentication;
	Dispatcher2 <CffIO::pCffIOError, bool> m_signalNetworkThreadError;

protected:
	Gtk::Entry *m_entryUser;
	Gtk::Entry *m_entryPwd;
	Gtk::Button* m_butOk;
	Gtk::Statusbar* m_pStatusbar;


public:
	CDlgAuthentication();
	virtual ~CDlgAuthentication()
	{}
	

protected:
	void initGUI();
	// signal handlers for the network thread
	void on_Connection(bool bConnected);
	void on_Authentication(int nAuthenticated);
	void on_networkthread_error(CffIO::pCffIOError pErr, bool bDisconnected);

	void on_butOk_clicked();
	void on_entry_changed();
	bool on_idle();

public:
	void run();
};

#endif