文件操作 - caja-sendto-caja-sendto-plugin.html
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/gtk-doc/html/caja-sendto/caja-sendto-caja-sendto-plugin.html
编辑文件内容
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>caja-sendto-plugin: caja-sendto Reference Manual</title> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="index.html" title="caja-sendto Reference Manual"> <link rel="up" href="ch01.html" title="caja-sendto documentation"> <link rel="prev" href="ch01.html" title="caja-sendto documentation"> <link rel="next" href="api-index-full.html" title="API Index"> <meta name="generator" content="GTK-Doc V1.25 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> <td width="100%" align="left" class="shortcuts"> <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> <a href="#caja-sendto-caja-sendto-plugin.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> <a href="#caja-sendto-caja-sendto-plugin.object-hierarchy" class="shortcut">Object Hierarchy</a></span> </td> <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> <td><a accesskey="p" href="ch01.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> <td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> </tr></table> <div class="refentry"> <a name="caja-sendto-caja-sendto-plugin"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle"><a name="caja-sendto-caja-sendto-plugin.top_of_page"></a>caja-sendto-plugin</span></h2> <p>caja-sendto-plugin — caja-sento plug-in</p> </td> <td class="gallery_image" valign="top" align="right"></td> </tr></table></div> <div class="refsect1"> <a name="caja-sendto-caja-sendto-plugin.stability-level"></a><h2>Stability Level</h2> <acronym title="The intention of a Stable interface is to enable arbitrary third parties to develop applications to these interfaces, release them, and have confidence that they will run on all minor releases of the product (after the one in which the interface was introduced, and within the same major release). Even at a major release, incompatible changes are expected to be rare, and to have strong justifications. "><span class="acronym">Stable</span></acronym>, unless otherwise indicated </div> <div class="refsect1"> <a name="caja-sendto-caja-sendto-plugin.functions"></a><h2>Functions</h2> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="150px" class="functions_return"> <col class="functions_name"> </colgroup> <tbody><tr> <td class="define_keyword">#define</td> <td class="function_name"> <a class="link" href="caja-sendto-caja-sendto-plugin.html#NST-INIT-PLUGIN:CAPS" title="NST_INIT_PLUGIN()">NST_INIT_PLUGIN</a><span class="c_punctuation">()</span> </td> </tr></tbody> </table></div> </div> <div class="refsect1"> <a name="caja-sendto-caja-sendto-plugin.other"></a><h2>Types and Values</h2> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="150px" class="name"> <col class="description"> </colgroup> <tbody> <tr> <td class="datatype_keyword">struct</td> <td class="function_name"><a class="link" href="caja-sendto-caja-sendto-plugin.html#NstPluginInfo" title="struct NstPluginInfo">NstPluginInfo</a></td> </tr> <tr> <td class="datatype_keyword">struct</td> <td class="function_name"><a class="link" href="caja-sendto-caja-sendto-plugin.html#NstPlugin" title="struct NstPlugin">NstPlugin</a></td> </tr> <tr> <td class="datatype_keyword">enum</td> <td class="function_name"><a class="link" href="caja-sendto-caja-sendto-plugin.html#NstPluginCapabilities" title="enum NstPluginCapabilities">NstPluginCapabilities</a></td> </tr> </tbody> </table></div> </div> <div class="refsect1"> <a name="caja-sendto-caja-sendto-plugin.object-hierarchy"></a><h2>Object Hierarchy</h2> <pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GFlags</a> <span class="lineart">╰──</span> NstPluginCapabilities </pre> </div> <div class="refsect1"> <a name="caja-sendto-caja-sendto-plugin.includes"></a><h2>Includes</h2> <pre class="synopsis">#include <bluetooth-plugin.h> </pre> </div> <div class="refsect1"> <a name="caja-sendto-caja-sendto-plugin.description"></a><h2>Description</h2> <p>Plug-ins can be used to extend caja-sendto.</p> </div> <div class="refsect1"> <a name="caja-sendto-caja-sendto-plugin.functions_details"></a><h2>Functions</h2> <div class="refsect2"> <a name="NST-INIT-PLUGIN:CAPS"></a><h3>NST_INIT_PLUGIN()</h3> <pre class="programlisting">#define NST_INIT_PLUGIN(plugininfo)</pre> <p>Call this on an <a class="link" href="caja-sendto-caja-sendto-plugin.html#NstPluginInfo" title="struct NstPluginInfo"><span class="type">NstPluginInfo</span></a> structure to make it available to caja-sendto.</p> <div class="refsect3"> <a name="NST-INIT-PLUGIN.parameters"></a><h4>Parameters</h4> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="150px" class="parameters_name"> <col class="parameters_description"> <col width="200px" class="parameters_annotations"> </colgroup> <tbody><tr> <td class="parameter_name"><p>plugininfo</p></td> <td class="parameter_description"><p>a <a class="link" href="caja-sendto-caja-sendto-plugin.html#NstPluginInfo" title="struct NstPluginInfo"><span class="type">NstPluginInfo</span></a> structure representing the plugin</p></td> <td class="parameter_annotations"> </td> </tr></tbody> </table></div> </div> </div> </div> <div class="refsect1"> <a name="caja-sendto-caja-sendto-plugin.other_details"></a><h2>Types and Values</h2> <div class="refsect2"> <a name="NstPluginInfo"></a><h3>struct NstPluginInfo</h3> <pre class="programlisting">struct NstPluginInfo { gchar *icon; gchar *id; gchar *description; gchar *gettext_package; NstPluginCapabilities capabilities; gboolean (*init) (NstPlugin *plugin); GtkWidget* (*get_contacts_widget) (NstPlugin *plugin); gboolean (*validate_destination) (NstPlugin *plugin, GtkWidget *contact_widget, char **error); gboolean (*send_files) (NstPlugin *plugin, GtkWidget *contact_widget, GList *file_list); gboolean (*destroy) (NstPlugin *plugin) ; }; </pre> <p>A structure representing a caja-sendto plugin. You should also call <a class="link" href="caja-sendto-caja-sendto-plugin.html#NST-INIT-PLUGIN:CAPS" title="NST_INIT_PLUGIN()"><code class="function">NST_INIT_PLUGIN()</code></a> on the plugin structure to export it.</p> <div class="refsect3"> <a name="NstPluginInfo.members"></a><h4>Members</h4> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="300px" class="struct_members_name"> <col class="struct_members_description"> <col width="200px" class="struct_members_annotations"> </colgroup> <tbody> <tr> <td class="struct_member_name"><p><span class="type">gchar</span> *<em class="structfield"><code><a name="NstPluginInfo.icon"></a>icon</code></em>;</p></td> <td class="struct_member_description"><p>The icon name for the plugin selection drop-down</p></td> <td class="struct_member_annotations"> </td> </tr> <tr> <td class="struct_member_name"><p><span class="type">gchar</span> *<em class="structfield"><code><a name="NstPluginInfo.id"></a>id</code></em>;</p></td> <td class="struct_member_description"><p>A unique ID representing the plugin</p></td> <td class="struct_member_annotations"> </td> </tr> <tr> <td class="struct_member_name"><p><span class="type">gchar</span> *<em class="structfield"><code><a name="NstPluginInfo.description"></a>description</code></em>;</p></td> <td class="struct_member_description"><p>The label used in the plugin selection drop-down</p></td> <td class="struct_member_annotations"> </td> </tr> <tr> <td class="struct_member_name"><p><span class="type">gchar</span> *<em class="structfield"><code><a name="NstPluginInfo.gettext-package"></a>gettext_package</code></em>;</p></td> <td class="struct_member_description"><p>The domain to use to translate the description, <code class="literal">NULL</code> if the plugin is part of caja-sendto</p></td> <td class="struct_member_annotations"> </td> </tr> <tr> <td class="struct_member_name"><p><a class="link" href="caja-sendto-caja-sendto-plugin.html#NstPluginCapabilities" title="enum NstPluginCapabilities"><span class="type">NstPluginCapabilities</span></a> <em class="structfield"><code><a name="NstPluginInfo.capabilities"></a>capabilities</code></em>;</p></td> <td class="struct_member_description"><p>a bitmask of <a class="link" href="caja-sendto-caja-sendto-plugin.html#NstPluginCapabilities" title="enum NstPluginCapabilities"><span class="type">NstPluginCapabilities</span></a></p></td> <td class="struct_member_annotations"> </td> </tr> <tr> <td class="struct_member_name"><p><em class="structfield"><code><a name="NstPluginInfo.init"></a>init</code></em> ()</p></td> <td class="struct_member_description"><p>Check for dependencies, and return <code class="literal">FALSE</code> if dependencies such as programs are missing.</p></td> <td class="struct_member_annotations"> </td> </tr> <tr> <td class="struct_member_name"><p><em class="structfield"><code><a name="NstPluginInfo.get-contacts-widget"></a>get_contacts_widget</code></em> ()</p></td> <td class="struct_member_description"><p>Return the contact widget, the widget to select the destination of the files</p></td> <td class="struct_member_annotations"> </td> </tr> <tr> <td class="struct_member_name"><p><em class="structfield"><code><a name="NstPluginInfo.validate-destination"></a>validate_destination</code></em> ()</p></td> <td class="struct_member_description"><p>Validate whether the destination can receive the file. This callback is optional.</p></td> <td class="struct_member_annotations"> </td> </tr> <tr> <td class="struct_member_name"><p><em class="structfield"><code><a name="NstPluginInfo.send-files"></a>send_files</code></em> ()</p></td> <td class="struct_member_description"><p>Actually send the files to the selected destination. The file list is a <span class="type">GList</span> of URI strings.</p></td> <td class="struct_member_annotations"> </td> </tr> <tr> <td class="struct_member_name"><p><em class="structfield"><code><a name="NstPluginInfo.destroy"></a>destroy</code></em> ()</p></td> <td class="struct_member_description"><p>Free all the resources used by the plugin.</p></td> <td class="struct_member_annotations"> </td> </tr> </tbody> </table></div> </div> </div> <hr> <div class="refsect2"> <a name="NstPlugin"></a><h3>struct NstPlugin</h3> <pre class="programlisting">struct NstPlugin { GModule *module; NstPluginInfo *info; }; </pre> <p>A structure as used in caja-sendto.</p> <div class="refsect3"> <a name="NstPlugin.members"></a><h4>Members</h4> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="300px" class="struct_members_name"> <col class="struct_members_description"> <col width="200px" class="struct_members_annotations"> </colgroup> <tbody> <tr> <td class="struct_member_name"><p><span class="type">GModule</span> *<em class="structfield"><code><a name="NstPlugin.module"></a>module</code></em>;</p></td> <td class="struct_member_description"><p>the <span class="type">GModule</span> for the opened shared library</p></td> <td class="struct_member_annotations"> </td> </tr> <tr> <td class="struct_member_name"><p><a class="link" href="caja-sendto-caja-sendto-plugin.html#NstPluginInfo" title="struct NstPluginInfo"><span class="type">NstPluginInfo</span></a> *<em class="structfield"><code><a name="NstPlugin.info"></a>info</code></em>;</p></td> <td class="struct_member_description"><p>a <a class="link" href="caja-sendto-caja-sendto-plugin.html#NstPluginInfo" title="struct NstPluginInfo"><span class="type">NstPluginInfo</span></a> structure</p></td> <td class="struct_member_annotations"> </td> </tr> </tbody> </table></div> </div> </div> <hr> <div class="refsect2"> <a name="NstPluginCapabilities"></a><h3>enum NstPluginCapabilities</h3> <p>Capabilities of the plugin.</p> <div class="refsect3"> <a name="NstPluginCapabilities.members"></a><h4>Members</h4> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="300px" class="enum_members_name"> <col class="enum_members_description"> <col width="200px" class="enum_members_annotations"> </colgroup> <tbody> <tr> <td class="enum_member_name"><p><a name="CAJA-CAPS-NONE:CAPS"></a>CAJA_CAPS_NONE</p></td> <td class="enum_member_description"> <p>No capabilities</p> </td> <td class="enum_member_annotations"> </td> </tr> <tr> <td class="enum_member_name"><p><a name="CAJA-CAPS-SEND-DIRECTORIES:CAPS"></a>CAJA_CAPS_SEND_DIRECTORIES</p></td> <td class="enum_member_description"> <p>The plugin can send whole directories without compression</p> </td> <td class="enum_member_annotations"> </td> </tr> <tr> <td class="enum_member_name"><p><a name="CAJA-CAPS-SEND-IMAGES:CAPS"></a>CAJA_CAPS_SEND_IMAGES</p></td> <td class="enum_member_description"> <p>The plugin only sends images which could be resized</p> </td> <td class="enum_member_annotations"> </td> </tr> </tbody> </table></div> </div> </div> </div> </div> <div class="footer"> <hr>Generated by GTK-Doc V1.25</div> </body> </html>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件