// Interface to Status Window


// Implementation is in StatusWindow.cpp


#ifndef STATUS_DECL


#define STATUS_DECL true


#define STAT_LINES 13


#ifndef GLOBAL_DECL

#include "global.h"     // Global data types and variables

#endif


// statuswnd class

class statuswnd
{
private:

    HANDLE lock_sema;                   // Semaphore to ensure mutual exclusion


    char status_lines[STAT_LINES][500]; // Lines of text to display in status window

    char szStAppName[10];               // Window Name

    char szStCaption[50];               // Window Caption

    bool show_status;                   // Does the user want continuous status updates?

    int  status_head;                   // Head of status text circular list


public:

    char status_text[8000];             // Actual text of status window


    statuswnd(config*);                 // Constructor

    void create( void );                // Create the status window

    void activate();                    // Activate the status window

    void destroy( void );               // Destroy the status window

    void addline( char* );              // Add a line to the status window text

    void finished( void );              // Notify user of download completion

    void cancelled( void );             // Notify user of download cancellation

    void deactivate();

};

#endif

syntax highlighted by Code2HTML, v. 0.8.11