source: filezilla/trunk/fuentes/src/interface/cmdline.h @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 3 years ago

First release to xenial

File size: 494 bytes
Line 
1#ifndef __CMDLINE_H__
2#define __CMDLINE_H__
3
4#include <wx/cmdline.h>
5
6class CCommandLine
7{
8public:
9        enum t_switches
10        {
11                sitemanager,
12                close,
13                version,
14                debug_startup
15        };
16
17        enum t_option
18        {
19                logontype,
20                site,
21                local
22        };
23
24        CCommandLine(int argc, wxChar** argv);
25        bool Parse();
26        void DisplayUsage();
27
28        bool HasSwitch(enum t_switches s) const;
29        wxString GetOption(enum t_option option) const;
30        wxString GetParameter() const;
31
32protected:
33        wxCmdLineParser m_parser;
34};
35
36#endif //__CMDLINE_H__
Note: See TracBrowser for help on using the repository browser.