Exemple #1
0
 /// <remarks>
 ///  Returns the items listed for the given <code>dir.</code>
 ///  This method will NOT start listing <code>dir</code>, you should only call
 ///  this when receiving the finished() signal.
 ///  The items in the KFileItemList are references to the items used
 ///  by KDirLister, so e.g. an item gets destroyed when the deleteItem()
 ///  signal is emitted.
 /// <param> name="dir" specifies the url for which the items should be returned. This
 ///             is only useful if you use KDirLister with multiple URLs
 ///             i.e. using bool keep = true in openUrl().
 /// </param><param> name="which" specifies whether the returned list will contain all entries
 ///               or only the ones that passed the nameFilter, mimeFilter, etc.
 ///               Note that the latter causes iteration over all the items,
 ///               filtering them. If this is too slow for you, use the
 ///  newItems() signal, sending out filtered items in chunks.
 /// </param></remarks>        <return> the items listed for <code>dir.</code>
 ///    </return>
 ///         <short>    Returns the items listed for the given <code>dir.</code></short>
 public List<KFileItem> ItemsForDir(KUrl dir, KDirLister.WhichItems which)
 {
     return (List<KFileItem>) interceptor.Invoke("itemsForDir#$", "itemsForDir(const KUrl&, KDirLister::WhichItems) const", typeof(List<KFileItem>), typeof(KUrl), dir, typeof(KDirLister.WhichItems), which);
 }
Exemple #2
0
 /// <remarks>
 ///  Set the directory lister to use by this model, instead of the default KDirLister created internally.
 ///  The model takes ownership.
 ///      </remarks>        <short>    Set the directory lister to use by this model, instead of the default KDirLister created internally.</short>
 public void SetDirLister(KDirLister dirLister)
 {
     interceptor.Invoke("setDirLister#", "setDirLister(KDirLister*)", typeof(void), typeof(KDirLister), dirLister);
 }
Exemple #3
0
 /// <remarks>
 ///  Returns the items listed for the current url().
 ///  This method will NOT start listing a directory, you should only call
 ///  this when receiving the finished() signal.
 ///  The items in the KFileItemList are references to the items used
 ///  by KDirLister, so e.g. an item gets destroyed when the deleteItem()
 ///  signal is emitted.
 /// <param> name="which" specifies whether the returned list will contain all entries
 ///               or only the ones that passed the nameFilter(), mimeFilter(),
 ///               etc. Note that the latter causes iteration over all the
 ///               items, filtering them. If this is too slow for you, use the
 ///               newItems() signal, sending out filtered items in chunks.
 /// </param></remarks>        <return> the items listed for the current url().
 ///    </return>
 ///         <short>    Returns the items listed for the current url().</short>
 public List<KFileItem> Items(KDirLister.WhichItems which)
 {
     return (List<KFileItem>) interceptor.Invoke("items$", "items(KDirLister::WhichItems) const", typeof(List<KFileItem>), typeof(KDirLister.WhichItems), which);
 }