summaryrefslogtreecommitdiff
path: root/misc/config.h
blob: 018213e79763cc03d76806e7b60249115fb7822b (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
31
32
33
/* 
 * File:   config.h
 * Author: savop
 *
 * Created on 15. August 2009, 13:03
 */

#ifndef _CONFIG_H
#define	_CONFIG_H

#include <vdr/tools.h>
#include "../common.h"

class cUPnPConfig {
private:
    static cUPnPConfig* mInstance;    
    cString mParsedArgs;
    cUPnPConfig();
public:
    char* mInterface;
    char* mAddress;
    int   mPort;
    int   mEnable;
    int   mAutoSetup;
public:
    virtual ~cUPnPConfig();
    static cUPnPConfig* get();
    bool  parseSetup(const char* Name, const char* Value);
    bool  processArgs(int argc, char* argv[]);
};

#endif	/* _CONFIG_H */