/// <remarks> /// Constructor. /// <param> name="parent" The parent object. /// </param><param> name="service" pointer to the service that describes the engine /// </param></remarks> <short> Constructor.</short> public DataEngine(QObject parent, KService service) : this((Type) null) { CreateProxy(); interceptor.Invoke("DataEngine#?", "DataEngine(QObject*, KSharedPtr<KService>)", typeof(void), typeof(QObject), parent, typeof(KService), service); }
public static KParts.BrowserRun.AskSaveResult AskSave(KUrl url, KService offer, string mimeType) { return (KParts.BrowserRun.AskSaveResult) staticInterceptor.Invoke("askSave#?$", "askSave(const KUrl&, KSharedPtr<KService>, const QString&)", typeof(KParts.BrowserRun.AskSaveResult), typeof(KUrl), url, typeof(KService), offer, typeof(string), mimeType); }
/// <remarks> /// Create a valid KDataToolInfo. /// <param> name="service" the corresponding service /// </param><param> name="instance" the instance to use /// </param></remarks> <short> Create a valid KDataToolInfo.</short> public KDataToolInfo(KService service, KComponentData instance) : this((Type) null) { CreateProxy(); interceptor.Invoke("KDataToolInfo?#", "KDataToolInfo(const KSharedPtr<KService>&, const KComponentData&)", typeof(void), typeof(KService), service, typeof(KComponentData), instance); }
public KCModuleProxy(KService service, QWidget parent) : this((Type) null) { CreateProxy(); interceptor.Invoke("KCModuleProxy?#", "KCModuleProxy(const KSharedPtr<KService>&, QWidget*)", typeof(void), typeof(KService), service, typeof(QWidget), parent); }
public KCModuleProxy(KService service) : this((Type) null) { CreateProxy(); interceptor.Invoke("KCModuleProxy?", "KCModuleProxy(const KSharedPtr<KService>&)", typeof(void), typeof(KService), service); }
public static bool Run(KService service, List<KUrl> urls, QWidget window) { return (bool) staticInterceptor.Invoke("run#?#", "run(const KService&, const KUrl::List&, QWidget*)", typeof(bool), typeof(KService), service, typeof(List<KUrl>), urls, typeof(QWidget), window); }
/// <remarks> /// Constructs a KCModuleProxy from KService. Otherwise equal to the one above. /// <param> name="service" The KService to construct from. /// </param><param> name="parent" the parent QWidget. /// </param><param> name="args" This is used in the implementation and is internal. /// Use the default. /// </param></remarks> <short> Constructs a KCModuleProxy from KService.</short> public KCModuleProxy(KService service, QWidget parent, List<string> args) : this((Type) null) { CreateProxy(); interceptor.Invoke("KCModuleProxy?#?", "KCModuleProxy(const KSharedPtr<KService>&, QWidget*, const QStringList&)", typeof(void), typeof(KService), service, typeof(QWidget), parent, typeof(List<string>), args); }
public static List<string> ProcessDesktopExec(KService _service, List<KUrl> _urls) { return (List<string>) staticInterceptor.Invoke("processDesktopExec#?", "processDesktopExec(const KService&, const KUrl::List&)", typeof(List<string>), typeof(KService), _service, typeof(List<KUrl>), _urls); }
public static bool Run(KService service, List<KUrl> urls, QWidget window, bool tempFiles, string suggestedFileName) { return (bool) staticInterceptor.Invoke("run#?#$$", "run(const KService&, const KUrl::List&, QWidget*, bool, const QString&)", typeof(bool), typeof(KService), service, typeof(List<KUrl>), urls, typeof(QWidget), window, typeof(bool), tempFiles, typeof(string), suggestedFileName); }
/// <remarks> /// Processes a Exec= line as found in .desktop files. /// <param> name="_service" the service to extract information from. /// </param><param> name="_urls" The urls the service should open. /// </param><param> name="tempFiles" if true and urls are local files, they will be deleted /// when the application exits. /// </param><param> name="suggestedFileName" see setSuggestedFileName /// </param></remarks> <return> a list of arguments suitable for KProcess.SetProgram(). /// </return> /// <short> Processes a Exec= line as found in .</short> public static List<string> ProcessDesktopExec(KService _service, List<KUrl> _urls, bool tempFiles, string suggestedFileName) { return (List<string>) staticInterceptor.Invoke("processDesktopExec#?$$", "processDesktopExec(const KService&, const KUrl::List&, bool, const QString&)", typeof(List<string>), typeof(KService), _service, typeof(List<KUrl>), _urls, typeof(bool), tempFiles, typeof(string), suggestedFileName); }
/// <remarks> /// </remarks> <short> </short> public static bool CheckStartupNotify(string binName, KService service, ref bool silent_arg, QByteArray wmclass_arg) { StackItem[] stack = new StackItem[5]; #if DEBUG stack[1].s_class = (IntPtr) DebugGCHandle.Alloc(binName); #else stack[1].s_class = (IntPtr) GCHandle.Alloc(binName); #endif #if DEBUG stack[2].s_class = (IntPtr) DebugGCHandle.Alloc(service); #else stack[2].s_class = (IntPtr) GCHandle.Alloc(service); #endif stack[3].s_bool = silent_arg; #if DEBUG stack[4].s_class = (IntPtr) DebugGCHandle.Alloc(wmclass_arg); #else stack[4].s_class = (IntPtr) GCHandle.Alloc(wmclass_arg); #endif staticInterceptor.Invoke("checkStartupNotify$#$#", "checkStartupNotify(const QString&, const KService*, bool*, QByteArray*)", stack); #if DEBUG DebugGCHandle.Free((GCHandle) stack[1].s_class); #else ((GCHandle) stack[1].s_class).SynchronizedFree(); #endif #if DEBUG DebugGCHandle.Free((GCHandle) stack[2].s_class); #else ((GCHandle) stack[2].s_class).SynchronizedFree(); #endif silent_arg = stack[3].s_bool; #if DEBUG DebugGCHandle.Free((GCHandle) stack[4].s_class); #else ((GCHandle) stack[4].s_class).SynchronizedFree(); #endif return stack[0].s_bool; }
/// <remarks> /// Same as above but takes a KService.Ptr as argument. /// @note <code>moduleInfo</code> must be a valid pointer. /// <param> name="moduleInfo" specifies the module /// </param></remarks> <short> Same as above but takes a KService.Ptr as argument.</short> public KCModuleInfo(KService moduleInfo) : this((Type) null) { CreateProxy(); interceptor.Invoke("KCModuleInfo?", "KCModuleInfo(KSharedPtr<KService>)", typeof(void), typeof(KService), moduleInfo); }
/// <remarks> /// Create a plugin represented by <pre>service</pre> with parent object <pre>parent</pre>. /// To get the KService object you usually use KServiceTypeTrader. Example /// <pre> /// KService.List list = KServiceTypeTrader.Self().Query("KTextEditor/Plugin"); /// foreach(const KService.Ptr &service, list) { /// // do something with service /// } /// </pre> /// \return the plugin or NULL if it could not be loaded /// </remarks> <short> Create a plugin represented by \p service with parent object \p parent.</short> public static KTextEditor.Plugin CreatePlugin(KService service, QObject parent) { return (KTextEditor.Plugin) staticInterceptor.Invoke("createPlugin?#", "createPlugin(KSharedPtr<KService>, QObject*)", typeof(KTextEditor.Plugin), typeof(KService), service, typeof(QObject), parent); }
/// <remarks> /// Read plugin info from a KService object. /// The .desktop file should look like this: /// <pre> /// [Desktop Entry] /// Encoding=UTF-8 /// Icon=mypluginicon /// Type=Service /// ServiceTypes=KPluginInfo /// X-KDE-PluginInfo-Author=Author's Name /// [email protected] /// X-KDE-PluginInfo-Name=internalname /// X-KDE-PluginInfo-Version=1.1 /// X-KDE-PluginInfo-Website=http://www.plugin.org/ /// X-KDE-PluginInfo-Category=playlist /// X-KDE-PluginInfo-Depends=plugin1,plugin3 /// X-KDE-PluginInfo-License=GPL /// X-KDE-PluginInfo-EnabledByDefault=true /// Name=User Visible Name /// Comment=Description of what the plugin does /// </pre> /// In the first three entries the Icon entry is optional. /// </remarks> <short> Read plugin info from a KService object.</short> public KPluginInfo(KService service) : this((Type) null) { CreateProxy(); interceptor.Invoke("KPluginInfo?", "KPluginInfo(const KSharedPtr<KService>)", typeof(void), typeof(KService), service); }