Public Member Functions | Public Attributes

URLTab Class Reference

Search for all occurrences

Detailed Description

See also:
Class DragAndDropHandler

Description:
This class is available in release 4.0 and later only.

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 modules 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 module has been downloaded and names will reflect local copies.

#include <idraganddrop.h>

Inheritance diagram for URLTab:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  URLTab ()
  ~URLTab ()
CoreExport URLTab operator= (const Tab< MCHAR * > &tb)
CoreExport URLTab operator= (const URLTab &tb)
CoreExport void  Add (MCHAR *url)
CoreExport void  Change (int i, 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< MCHAR * > &  tb )
Remarks:
Assignment operator.
CoreExport URLTab& operator= ( const URLTab tb )
Remarks:
Assignment operator.
CoreExport void Add ( MCHAR *  url )
Remarks:
This method adds a URL string to the module. A local copy of the string will be made.
Parameters:
MCHAR* url

The URL string to add.
CoreExport void Change ( int  i,
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 module (deletes all the strings), zeros the Tab<> and resets 'downloaded' to FALSE.

Member Data Documentation

BOOL downloaded

URLTab URLTab URLTab URLTab URLTab URLTab URLTab URLTab URLTab URLTab
URLTab URLTab URLTab URLTab URLTab URLTab URLTab URLTab URLTab URLTab