Пример #1
0
 /// <summary>
 /// get all conference booksmarks
 /// </summary>
 /// <returns></returns>
 public Conference[] GetConferences()
 {
     ElementList nl = SelectElements(typeof(Conference));
     Conference[] items = new Conference[nl.Count];
     int i = 0;
     foreach (Element e in nl)
     {
         items[i] = (Conference)e;
         i++;
     }
     return items;
 }
Пример #2
0
 /// <summary>
 /// Add a conference bookmark to the storage object
 /// </summary>
 /// <param name="conf"></param>
 /// <returns></returns>
 public Conference AddConference(Conference conf)
 {
     AddChild(conf);
     return conf;
 }
Пример #3
0
 /// <summary>
 /// Send booksmarks to the server storage
 /// </summary>
 /// <param name="conferences"></param>
 public void StoreBookmarks(Conference[] conferences)
 {
     StoreBookmarks(null, conferences, null, null);
 }
Пример #4
0
 /// <summary>
 /// add multiple conference bookmarks
 /// </summary>
 /// <param name="confs"></param>
 public void AddConferences(Conference[] confs)
 {
     foreach (Conference conf in confs)
     {
         AddConference(conf);
     }
 }
Пример #5
0
        /// <summary>
        /// Send booksmarks to the server storage
        /// </summary>
        /// <param name="urls"></param>
        /// <param name="conferences"></param>
        /// <param name="cb"></param>
        /// <param name="cbArgs"></param>
        public void StoreBookmarks(Url[] urls, Conference[] conferences, IqCB cb, object cbArgs)
        {
            StorageIq siq = new StorageIq(IqType.set);

            if (urls != null)
                siq.Query.Storage.AddUrls(urls);

            if (conferences != null)
                siq.Query.Storage.AddConferences(conferences);

            if (cb == null)
                m_connection.Send(siq);
            else
                m_connection.IqGrabber.SendIq(siq, cb, cbArgs);
        }
Пример #6
0
 /// <summary>
 /// Send booksmarks to the server storage
 /// </summary>
 /// <param name="urls"></param>
 /// <param name="conferences"></param>
 /// <param name="cb"></param>
 public void StoreBookmarks(Url[] urls, Conference[] conferences, IqCB cb)
 {
     StoreBookmarks(urls, conferences, cb, null);
 }
Пример #7
0
 /// <summary>
 /// Send booksmarks to the server storage
 /// </summary>
 /// <param name="urls"></param>
 /// <param name="conferences"></param>
 public void StoreBookmarks(Url[] urls, Conference[] conferences)
 {
     StoreBookmarks(urls, conferences, null, null);
 }
Пример #8
0
 /// <summary>
 /// Send booksmarks to the server storage
 /// </summary>
 /// <param name="conferences"></param>
 /// <param name="cb"></param>
 /// <param name="cbArgs"></param>
 public void StoreBookmarks(Conference[] conferences, IqCB cb, object cbArgs)
 {
     StoreBookmarks(null, conferences, cb, cbArgs);
 }
Пример #9
0
 /// <summary>
 /// Send booksmarks to the server storage
 /// </summary>
 /// <param name="conferences"></param>
 /// <param name="cb"></param>
 public void StoreBookmarks(Conference[] conferences, IqCB cb)
 {
     StoreBookmarks(null, conferences, cb, null);
 }