Exemple #1
0
/*
 * Private API
 */
void
Local::Heap::add (xmlNodePtr node)
{
  PresentityPtr presentity (new Presentity (core, doc, node));

  common_add (presentity);
}
Exemple #2
0
void
RL::Cluster::add (xmlNodePtr node)
{
  HeapPtr heap (new Heap (core, doc, node));

  common_add (heap);
}
Exemple #3
0
/*
 * Private API
 */
void
Local::Heap::add (xmlNodePtr node)
{
  PresentityPtr presentity (new Presentity (local_cluster, presence_core,
					    doc, node));

  common_add (presentity);
}
void
OPENLDAP::Source::add (xmlNodePtr node)
{
  Book *book = NULL;

  book = new Book (core, node);

  common_add (*book);
}
void
OPENLDAP::Source::add ()
{
    xmlNodePtr root;

    root = xmlDocGetRootElement (doc.get ());
    BookPtr book (new Book (core, doc, bookinfo));

    xmlAddChild (root, book->get_node ());

    common_add (book);
}
Exemple #6
0
void
Local::Heap::add (const std::string name,
		  const std::string uri,
		  const std::set<std::string> groups)
{
  xmlNodePtr root = NULL;

  root = xmlDocGetRootElement (doc.get ());
  PresentityPtr presentity (new Presentity (core, doc, name, uri, groups));

  xmlAddChild (root, presentity->get_node ());

  save ();
  common_add (presentity);
}
Exemple #7
0
void
RL::Cluster::add (const std::string uri,
		  const std::string username,
		  const std::string password,
		  const std::string user,
		  const std::string name,
		  bool writable)
{
  HeapPtr heap (new Heap (core, doc, name, uri, user, username, password, writable));
  xmlNodePtr root = xmlDocGetRootElement (doc.get ());

  xmlAddChild (root, heap->get_node ());

  save ();
  common_add (heap);
}
void
OPENLDAP::Source::add (const std::string name,
		       const std::string hostname,
		       int port,
		       const std::string base,
		       const std::string scope,
		       const std::string call_attribute,
		       const std::string password)
{
  Book *book = NULL;
  xmlNodePtr root;

  root = xmlDocGetRootElement (doc);
  book = new Book (core, name, hostname, port, base,
		   scope, call_attribute, password);

  xmlAddChild (root, book->get_node ());

  common_add (*book);
}
void
OPENLDAP::Source::add (xmlNodePtr node)
{
    common_add (BookPtr(new Book (core, doc, node)));
}