menu: added new Keywords tag to .desktop files
[barry.git] / desktop / src / ModemDlg.h
blob59d258951b6af7d37e682b28b66172fff6d37890
1 ///
2 /// \file ModemDlg.h
3 /// Dialog class to handle modem functionality
4 ///
6 /*
7 Copyright (C) 2012-2013, Net Direct Inc. (http://www.netdirect.ca/)
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 See the GNU General Public License in the COPYING file at the
19 root directory of this project for more details.
22 #ifndef __BARRYDESKTOP_MODEM_DLG_H__
23 #define __BARRYDESKTOP_MODEM_DLG_H__
25 #include <wx/wx.h>
26 #include <wx/image.h>
27 #include <vector>
28 #include <string>
29 // begin wxGlade: ::dependencies
30 // end wxGlade
33 // begin wxGlade: ::extracode
34 // end wxGlade
36 namespace Barry {
37 class Pin;
40 class ModemDlg : public wxDialog
42 public:
43 // begin wxGlade: ModemDlg::ids
44 // end wxGlade
46 private:
47 // begin wxGlade: ModemDlg::methods
48 void set_properties();
49 void do_layout();
50 // end wxGlade
52 protected:
53 // begin wxGlade: ModemDlg::attributes
54 wxStaticBox* sizer_5_staticbox;
55 wxStaticBox* sizer_1_staticbox;
56 wxStaticText* label_2;
57 wxStaticText* device_label;
58 wxListBox* list_box_1;
59 wxStaticText* label_1;
60 wxTextCtrl* text_ctrl_1;
61 // end wxGlade
63 wxSizer *bottom_buttons;
64 wxSizer *m_top_sizer;
66 public:
67 ModemDlg(wxWindow* parent, const std::vector<std::string> &peers,
68 const std::string &default_peer,
69 const Barry::Pin &pin);
71 std::string GetPeerName() const;
72 std::string GetPassword() const;
74 static void DoModem(wxWindow *parent, const Barry::Pin &pin);
75 }; // wxGlade: end class
78 #endif // MODEMDLG_H