• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

bt::BDictNode

bt::BDictNode Class Reference

#include <bnode.h>

Inheritance diagram for bt::BDictNode:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Joris Guisson

Represents a dictionary in bencoded data

Definition at line 98 of file bnode.h.


Public Member Functions

 BDictNode (Uint32 off)
BNode * getData (const QString &key)
BDictNode * getDict (const QByteArray &key)
BDictNode * getDict (const QString &key)
BListNode * getList (const QString &key)
BValueNode * getValue (const QString &key)
void insert (const QByteArray &key, BNode *node)
void printDebugInfo ()
virtual ~BDictNode ()

Constructor & Destructor Documentation

bt::BDictNode::BDictNode ( Uint32  off  ) 

Definition at line 52 of file bnode.cpp.

bt::BDictNode::~BDictNode (  )  [virtual]

Definition at line 56 of file bnode.cpp.


Member Function Documentation

BNode * bt::BDictNode::getData ( const QString &  key  ) 

Get a BNode.

Parameters:
key The key
Returns:
The node or 0 if there is no node with has key key

Definition at line 75 of file bnode.cpp.

BDictNode * bt::BDictNode::getDict ( const QByteArray &  key  ) 

Get a BDictNode.

Parameters:
key The key
Returns:
The node or 0 if there is no dict node with has key key

Definition at line 88 of file bnode.cpp.

BDictNode * bt::BDictNode::getDict ( const QString &  key  ) 

Get a BDictNode.

Parameters:
key The key
Returns:
The node or 0 if there is no dict node with has key key

Definition at line 107 of file bnode.cpp.

BListNode * bt::BDictNode::getList ( const QString &  key  ) 

Get a BListNode.

Parameters:
key The key
Returns:
The node or 0 if there is no list node with has key key

Definition at line 101 of file bnode.cpp.

BValueNode * bt::BDictNode::getValue ( const QString &  key  ) 

Get a BValueNode.

Parameters:
key The key
Returns:
The node or 0 if there is no value node with has key key

Definition at line 113 of file bnode.cpp.

void bt::BDictNode::insert ( const QByteArray &  key,
BNode *  node 
)

Insert a BNode in the dictionary.

Parameters:
key The key
node The node

Definition at line 67 of file bnode.cpp.

void bt::BDictNode::printDebugInfo (  )  [virtual]

Print some debugging info.

Implements bt::BNode.

Definition at line 119 of file bnode.cpp.


The documentation for this class was generated from the following files:
  • bnode.h
  • bnode.cpp

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal