URLTab Class Reference
 
 
 
URLTab Class Reference

This reference page is linked to from the following overview topics: Core Interfaces.


#include <idraganddrop.h>

Inheritance diagram for URLTab:
Tab< const MCHAR * > MaxHeapOperators

Class Description

See also:
Class DragAndDropHandler

Description:
The URLTab class is a Tab<MCHAR*> utility class that is used by certain components in the Drag and Drop manager to hold and pass around packages of file URLs. The class manages its own local copies of URL strings. This class represents the additional API support by URLTab, over-and-above that provided by any Tab<> template instantiation.
Data Members:
protected:

BOOL downloaded;

This flag is set to indicate the URL package has been downloaded and names will reflect local copies.

Public Member Functions

  URLTab ()
  ~URLTab ()
CoreExport URLTab operator= (const Tab< const MCHAR * > &tb)
CoreExport URLTab operator= (const URLTab &tb)
CoreExport void  Add (const MCHAR *url)
CoreExport void  Change (int i, const MCHAR *url)
CoreExport void  Clear ()

Public Attributes

BOOL  downloaded

Constructor & Destructor Documentation

URLTab ( ) [inline]
Remarks:
Constructor.
Default Implementation:
{ downloaded = FALSE; }
{ downloaded = FALSE; }
~URLTab ( ) [inline]
Remarks:
Destructor.

URLTabs manage their own local string element copies, the destructor frees all these strings.
Default Implementation:
{ Clear(); }
{ Clear(); }

Member Function Documentation

CoreExport URLTab& operator= ( const Tab< const MCHAR * > &  tb )
Remarks:
Assignment operator.
CoreExport URLTab& operator= ( const URLTab tb )
Remarks:
Assignment operator.
CoreExport void Add ( const MCHAR *  url )
Remarks:
This method adds a URL string to the package. A local copy of the string will be made.
Parameters:
MCHAR* url

The URL string to add.
CoreExport void Change ( int  i,
const MCHAR *  url 
)
Remarks:
This method replaces the i'th element by deletes the old string, taking a local copy of the new one. This is used by the various loaders to replace a URL with its local copy path name upon download.
Parameters:
int i

The index of the URL to replace.

MCHAR* url

The new URL string.
CoreExport void Clear ( )
Remarks:
This method clears the package (deletes all the strings), zeros the Tab<> and resets 'downloaded' to FALSE.

Member Data Documentation