desktop: added modem support
[barry.git] / desktop / src / ModemDlg.h
blobca8e057ae405793e196f08f24d5163fd4acbbc6c
1 ///
2 /// \file ModemDlg.h
3 /// Dialog class to handle modem functionality
4 ///
6 /*
7 Copyright (C) 2012, 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 wxListBox* list_box_1;
57 wxStaticText* label_1;
58 wxTextCtrl* text_ctrl_1;
59 // end wxGlade
61 wxSizer *bottom_buttons;
62 wxSizer *m_top_sizer;
64 public:
65 ModemDlg(wxWindow* parent, const std::vector<std::string> &peers,
66 const std::string &default_peer);
68 std::string GetPeerName() const;
69 std::string GetPassword() const;
71 static void DoModem(wxWindow *parent, const Barry::Pin &pin);
72 }; // wxGlade: end class
75 #endif // MODEMDLG_H