camnet.h File Reference

(r1785/r751)

#include <wininet.h>
#include <urlmon.h>
#include <winsock.h>
#include <afxtempl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include "stl.h"

Go to the source code of this file.

Classes

struct  tagDOWNLOADINFO
class  AsynchDownload
 Asynchronous download class - downloads a url to a local file using HTTP Used by the download manager. More...
class  AsynchDownload::AsynchBindStatusCallback
class  DownloadQueue
 InternetManager support class. Represents a queue of asynchronous downloads, which are executed in sequence one at a time. More...
struct  CacheEntry
 DownloadCache support structure. Encapsulates an entry into the cache file table. More...
struct  CacheRemovalAlgorithm
 DownloadCache support structure. Implements the cache removal algorithm. When the cache fills up, files with lower priority will be discarded first (see CacheEntry::Priority); for files of equal priority we compare the time stamps. More...
class  DownloadCache
 Implements the file cache used by the InternetManager Comment: The interface is static so it can be accessed from anywhere in the program with the scope resolution operator ::. More...
class  DownloadCache::CacheMonitor
class  InternetManager
 Webster connection/download manager. It is responsible for schedulling downloads for execution according to the priority declared by the client on registration, ensuring that no more than a preset number of connections are open at any one time (important for users with limited bandwidth), and otherwise keeping track of their fate. The sheduling sheme is as follows:
  • downloads with AsynchDownload::PRIORITY_NORMAL will be executed one at a time, as long as there are no high priority downloads queued up and the maximum number of connections is not exceeded. They all share the same progress dlg, which is hidden when there are no downloads scheduled
  • downloads with AsynchDownload::PRIORITY_HIGH will be executed simultaneously, up to the maximum no of connections. Each download gets its own progress dlg.
More...

Defines

#define DOWNLOAD_HANDLE   INT32
#define MAX_HANDLE   1000
#define DOWNLOAD_ERROR   1
#define SIZEOFKILOBYTE   1024
#define NOTIFICATION_QUEUE_SIZE   3

Typedefs

typedef tagDOWNLOADINFO DOWNLOADINFO
typedef tagDOWNLOADINFOLPDOWNLOADINFO

Enumerations

enum  FileType {
  TYPE_HTML = 0, TYPE_CLIPART, TYPE_FONT, TYPE_BITMAP,
  TYPE_TEXTURE, TYPE_COLOUR, TYPE_FILL, TYPE_THUMBNAIL,
  TYPE_CATALOG, TYPE_SUPPORT
}
enum  ConnectionType { CONNECTION_SLOWMODEM = 0, CONNECTION_FASTMODEM, CONNECTION_X2, CONNECTION_ISDN }


Define Documentation

#define DOWNLOAD_ERROR   1
 

Definition at line 119 of file camnet.h.

#define DOWNLOAD_HANDLE   INT32
 

Definition at line 117 of file camnet.h.

#define MAX_HANDLE   1000
 

Definition at line 118 of file camnet.h.

#define NOTIFICATION_QUEUE_SIZE   3
 

Definition at line 122 of file camnet.h.

#define SIZEOFKILOBYTE   1024
 

Definition at line 120 of file camnet.h.


Typedef Documentation

typedef struct tagDOWNLOADINFO DOWNLOADINFO
 

typedef struct tagDOWNLOADINFO * LPDOWNLOADINFO
 


Enumeration Type Documentation

enum ConnectionType
 

Enumerator:
CONNECTION_SLOWMODEM 
CONNECTION_FASTMODEM 
CONNECTION_X2 
CONNECTION_ISDN 

Definition at line 129 of file camnet.h.

enum FileType
 

Enumerator:
TYPE_HTML 
TYPE_CLIPART 
TYPE_FONT 
TYPE_BITMAP 
TYPE_TEXTURE 
TYPE_COLOUR 
TYPE_FILL 
TYPE_THUMBNAIL 
TYPE_CATALOG 
TYPE_SUPPORT 

Definition at line 125 of file camnet.h.


Generated on Sat Nov 10 03:49:28 2007 for Camelot by  doxygen 1.4.4