CChannelTree Class Reference

#include <cchanneltree.h>

List of all members.

Public Member Functions

 CChannelTree (wxWindow *parent, wxWindowID id)
void Make (const int id=0, const wxTreeItemId &itemId=wxTreeItemId())
void SelectChannelsFromFolder (int folderId, vector< int > &channels)


Detailed Description

Tree control with channels and folders.


Constructor & Destructor Documentation

CChannelTree::CChannelTree wxWindow *  parent,
wxWindowID  id
 

Cstr.

Parameters:
parent Parent window.
id Channel tree id.


Member Function Documentation

void CChannelTree::Make const int  id = 0,
const wxTreeItemId &  itemId = wxTreeItemId()
 

Makes a channel tree at the start of the program. Is called recursively -- selects all channels and folders (all children) from folder with <id> and then calls itself with these child folders.

Parameters:
id Folder id from which channels and folders are selected. It's an id from db table "folders". The value "0" is for the root item.
itemId wxTreeItemId of folder with id. It will be parent of selected channels and folders in the tree.

void CChannelTree::SelectChannelsFromFolder int  folderId,
vector< int > &  channels
 

Selects channels from the folder. Selects channels from the folder and stores the channel ids into the vector. Selects all the channels -- even "grandchild" channels and so on.

Parameters:
folderId Id of a folder from which channels are being selected.
channels Vector of channel ids.


The documentation for this class was generated from the following files:
Generated on Tue Oct 3 20:47:11 2006 for RSSReader by  doxygen 1.4.6