home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 December / PCWKCD1296.iso / vjplusb / activex / inetsdk / samples / wininet / asyncftp / clist.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-01  |  566 b   |  36 lines

  1.  
  2. #ifndef _CLIST_H
  3. #define _CLIST_H
  4.  
  5. //linked list data structure
  6. struct node {
  7.     node *next;
  8.     TVNODEINFO data;
  9. };
  10.  
  11.  
  12. //linked list class for managing the data associated with 
  13. //treeview items
  14.  
  15. class Clist 
  16. {
  17. public:
  18.     Clist();
  19.     ~Clist();
  20.     LPTVNODEINFO insertatend(LPTVNODEINFO);
  21.     void remove(void);  //remove all items associated with specific site node
  22.     void remove(int);   //remove only specific node
  23.     node * getfirstnode() //return root level site node
  24.     {
  25.             return head->next;
  26.     }
  27.  
  28. private:
  29.     struct node *head, *z;
  30.  
  31.  
  32. };
  33.  
  34.  
  35. #endif 
  36.