Ignore:
Timestamp:
Mar 10, 2007, 4:21:32 PM (18 years ago)
Author:
cinc
Message:

Added doxygen tags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/desktop/idl/wpfolder.idl

    r244 r245  
    3232*
    3333* ***** END LICENSE BLOCK ***** */
    34 
     34/** \file
     35   
     36*/
    3537#ifndef WPFOLDER_IDL_INCLUDED
    3638#define WPFOLDER_IDL_INCLUDED
     
    4547NOMMETACLASS(M_WPFolder);
    4648
     49/** \interface WPFolder
     50
     51    A desktop class representing directories.
     52 */
    4753interface WPFolder : WPFileSystem
    4854{
    4955  NOMCLASSVERSION(1, 0);
    5056
     57  /**
     58     This method gathers the content of a folder (by searching the filesystem)
     59     and creates the objects it contains. This means the representation of the
     60     files and folders on disk.
     61     All found objects are inserted into the internal list of objects.
     62
     63     \remarks This method does not create a folder window nor does it add any
     64     objects to the store holding objects to be shown in a folder window.
     65
     66     \param fFoldersOnly If set to TRUE only directories are inserted into the
     67     content list. This is useful when building tree views.
     68
     69     \return TRUE on success FALSE otherwise.
     70
     71   */
    5172  boolean wpPopulate(in unsigned long ulReserved,
    5273                     in string pszPath,
    5374                     in boolean fFoldersOnly);
     75
     76  /**
     77     Create a window which may show the objects in this folder. The default folder
     78     window is just a toplevel window with a container for the icons.
     79     This method is called when a new folder view is created. No objects are inserted
     80     during execution of this method.
     81
     82     \remarks The default window is of class WPFolderWindow. If you want to
     83     replace the window make sure you have at least one container window (an
     84     icon view) into which objects may be inserted
     85
     86     \par How to override:
     87     This method may be overriden if the default folder window doesn't fit your
     88     needs.
     89
     90     \note This method and the WPFolderWindow class need some detailed explanation
     91     about subclassing and replacing.
     92   */
    5493  PWPFolderWindow wpCreateFolderWindow();
    55 
    56 #if 0
    57   WPObject wpQueryContent(in WPObject Object,
    58                           in ULONG ulOption);
    59 
    60   BOOL wpAddToContent(in WPObject Object);
    61 #endif
    6294
    6395  gulong wpQueryFldrFlags();
    6496  boolean wpSetFldrFlags(in gulong ulFlags, in gulong ulMask);
    6597
    66   gulong wpAddToContent(in PWPObject wpObject, in string chrFileName);
     98  /**
     99     Add an object to the internal list of objects held by
     100     the folder.
     101
     102     \remarks The object is not added to the store which is used
     103     for displaying objects in the folder window. It's necessary to call
     104     wpAddToStore() for this.
     105
     106     \par How to override:
     107     This method may be overriden to track the insertion of objects into
     108     a folder. The parent should be called first.
     109
     110     \param wpObject The object to be added.
     111
     112     \return TRUE on success FALSE otherwise.
     113
     114     \sa wpQueryContent(), wpDeleteFromContent(), wpAddToStore()
     115   */
     116  gulong wpAddToContent(in PWPObject wpObject);
     117
     118  /**
     119     This method needs implementation. The signature will change.
     120
     121     Don't use!
     122   */
    67123  PWPObject wpQueryContent();
    68124
     
    75131     \return TRUE on success FALSE otherwise.
    76132
    77      \sa wpQueryContents(), wpAddToContents()
     133     \sa wpQueryContent(), wpAddToContent()
    78134   */
    79135  boolean wpDeleteFromContent(in PWPObject wpObject);
    80136
     137  /**
     138     Add an object to the store of the folder. By adding the object
     139     to the store it will show in the folder window.
     140
     141     \remarks Don't insert an object into the folders store which is not
     142     already in the internal list of folder objects. Use wpAddToContent()
     143     to do that. If there's no store yet this methods does nothing. A folder
     144     only has a store if any view was created.
     145
     146     \param wpObject The object to be added to the store. Using NULL here is
     147     save and will do nothing.
     148
     149     \return TRUE on success FALSE otherwise.
     150
     151     \sa wpAddToContent(), wpDeleteFromStore()
     152   */
    81153  PUSEITEM wpAddToStore(in PWPObject wpObject);
     154
     155  /**
     156     Delete an object from the store. The store holds all the objects which
     157     are visible in the folder window.
     158
     159     \remarks An object must first be removed from the folders store before it
     160     is removed from the folders content list.
     161
     162     \param wpObject The object to be removed from the folders store.
     163
     164     \sa wpAddToStore(), wpDeleteFromContent()
     165   */
    82166  PUSEITEM wpDeleteFromStore(in PWPObject wpObject);
    83167
    84168  NOMOVERRIDE(wpInitData);
     169  /**
     170     Override of the wpOpen() method. The WPFolder implementation calls
     171     wpPopulate(), creates a new folder window and inserts the objects into the
     172     window.
     173   */
    85174  NOMOVERRIDE(wpOpen);
    86175  NOMOVERRIDE(wpQueryIcon);
     
    89178  NOMOVERRIDE(wpDrop);
    90179
     180  /**
     181     This variable will go away.
     182   */
    91183  NOMINSTANCEVAR(PPRIVFOLDERDATA privFolderData); /* This will go away... */
     184  /**
     185     This varable holds the binary tree containing all the objects inserted into this
     186     folder. The key for accessing the objects is the objects name. This way a fast
     187     search for duplicates is possible.
     188
     189     \remarks This variable is private and can only be accessed from within the class.
     190     
     191     \sa wpAddToContent(), wpDeleteFromContent()
     192   */
    92193  NOMINSTANCEVAR(PGTree fldrObjects);
     194
     195  /**
     196     Container flags.
     197
     198     \remarks This variable has access methods for setting and querying.
     199
     200     \sa wpQueryFldrFlags(), wpSetFldrFlags(),
     201   */
    93202  NOMINSTANCEVAR(gulong ulFldrFlags);
     203  /**
     204     This private instance variable holds the store of this folder. The store contains
     205     all the objects which are shown in the container.
     206
     207     \remarks This variable is private and can only be accessed from within the class.
     208
     209     \sa wpAddToStore(), wpDeleteFromStore()
     210   */
    94211  NOMINSTANCEVAR(PGtkListStore pListStore);
    95212};
Note: See TracChangeset for help on using the changeset viewer.