// Interface to Config


// Implementation is in Config.cpp


#ifndef CONFIG_DECL


#define CONFIG_DECL true


#define FILENAME "./wns.ini"



// Buttons class

class config
{
public:
    void save(pglist*);         // Save to ini file

    void load(pglist*);         // Load from ini file


    // User changeable

    char hours[10];             // Time to start download after sleep

    char minutes[10];           // Time to start download after sleep


    bool use_proxy;             // Should we use a proxy?

    char proxy_addr[100];       // Proxy server address

    int  proxy_port;            // Proxy port

    bool use_modem;             // Should we connect using a modem


    int  timeout;               // Timeout delay for getting page

    int  retries;               // No. of times to retry getting page


    bool supervisor;            // Supervisor mode

    bool show_extern;           // Should external links be shown?

    bool show_status;           // Should the status screen be updated?


    char font_size[3];          // Size of font in HTML pages


    // Non user changeable

    bool downloading;           // Downloading in process

    bool cancel;                // Downloading has been cancelled

    bool unsupervised;          // Is the download unsupervised?


    int sleep_hrs;              // Time to start download after sleep

    int sleep_mins;             // Time to start download after sleep


    char OS[10];                // Operating system (Win9x or WinNT)

    char default_name[100];     // Default Dial-Up connection name

    
    DWORD autoconnect;          // Was autodial turned on for default user?

    DWORD autodisconnect;       // Was autodisconnect turned on?

    DWORD exitdisconnect;       // Was exit disconnect turned on?


    char version_number[200];   // Version number of page file

};

#endif

syntax highlighted by Code2HTML, v. 0.8.11