public static KUrl.List FromMimeData(QMimeData mimeData, Dictionary <string, string> metaData) { KUrl.List list = new KUrl.List(); SmokeMarshallers.FromIntPtr addfn = delegate(IntPtr ptr) { GCHandle handle = (GCHandle)ptr; list.Add((KUrl)handle.Target); handle.Free(); }; IDictionaryEnumerator e = null; if (metaData != null) { e = metaData.GetEnumerator(); } GetNextDictionaryEntryFn dictfn = delegate(ref string key, ref string value) { if (metaData == null) { return(false); } if (!e.MoveNext()) { return(false); } key = (string)e.Key; value = (string)e.Value; return(true); }; KUrlListFromMimeData(addfn, (IntPtr)GCHandle.Alloc(mimeData), dictfn); return(list); }
public KUrl.List UrlList() { KUrl.List list = new KUrl.List(); foreach (KFileItem item in this) { list.Add(item.Url()); } return(list); }