Source Code (Use browser search to find items of interest.)
Class Index
kdat'BackupProfileNode (./kdeadmin/kdat/Node.h:934)
class BackupProfileNode : public Node {
BackupProfile* _backupProfile;
public:
/**
* Create a backup profile node.
*
* @param backupProfile A pointer to the backup profile that this node represents.
*/
BackupProfileNode( BackupProfile* backupProfile );
/**
* Get the backup profile associated with this node.
*
* @return A pointer to the backup profile.
*/
BackupProfile* getBackupProfile();
/**
* Make sure that the displayed information matches the backup profile.
*
* @return TRUE if the node's text has changed.
*/
bool validate();
/**
* Determine whether the node is an instance of the given node type.
*
* @param type The type to compare against.
*/
virtual bool isType( int type );
/**
* This method is called immediately after the node has been selected.
*/
virtual void selected();
/**
* This method is called when the user right-clicks the mouse over the
* node.
*/
virtual void popupMenu( const QPoint& );
};
/**
* @short This node represents the root of the backup profile subtree.
*/
kdat'BackupProfileNode::BackupProfileNode() (./kdeadmin/kdat/Node.cpp:1425)
BackupProfileNode::BackupProfileNode( BackupProfile* backupProfile )
: Node( BackupProfileNodeType, backupProfile->getName(), *ImageCache::instance()->getFile() ),
_backupProfile( backupProfile )
{
}
kdat'BackupProfileNode::getBackupProfile() (./kdeadmin/kdat/Node.cpp:1431)
BackupProfile* BackupProfileNode::getBackupProfile()
{
return _backupProfile;
}
kdat'BackupProfileNode::validate() (./kdeadmin/kdat/Node.cpp:1436)
bool BackupProfileNode::validate()
{
bool changed = _backupProfile->getName() != getText();
if ( changed ) {
setText( _backupProfile->getName() );
}
return changed;
}
kdat'BackupProfileNode::isType() (./kdeadmin/kdat/Node.cpp:1446)
bool BackupProfileNode::isType( int type )
{
if ( type == BackupProfileNodeType ) {
return TRUE;
} else {
return Node::isType( type );
}
}
kdat'BackupProfileNode::selected() (./kdeadmin/kdat/Node.cpp:1455)
void BackupProfileNode::selected()
{
KDat::getInstance()->showBackupProfileInfo( _backupProfile );
}
kdat'BackupProfileNode::popupMenu() (./kdeadmin/kdat/Node.cpp:1460)
void BackupProfileNode::popupMenu( const QPoint& p )
{
KDat::getInstance()->popupBackupProfileMenu( p );
}