#include "rox-clib.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <libxml/parser.h>
#include "rox.h"
#include "rox_soap.h"
#include "error.h"
#include "rox_debug.h"
#include "rox_filer_action.h"
Functions | |
void | rox_filer_action_init (void) |
void | rox_filer_open_dir (const char *filename) |
void | rox_filer_close_dir (const char *filename) |
void | rox_filer_examine (const char *filename) |
void | rox_filer_panel (const char *name, ROXPanelSide side) |
void | rox_filer_panel_add (ROXPanelSide side, const char *path, int after) |
void | rox_filer_pinboard (const char *name) |
void | rox_filer_pinboard_add (const char *path, int x, int y) |
void | rox_filer_run (const char *filename) |
void | rox_filer_show (const char *directory, const char *leafname) |
void | rox_filer_copy (const char *from, const char *to, const char *leafname, int quiet) |
void | rox_filer_move (const char *from, const char *to, const char *leafname, int quiet) |
void | rox_filer_link (const char *from, const char *to, const char *leafname) |
void | rox_filer_mount (const char *mountpoint, int quiet, int opendir) |
char * | rox_filer_file_type (const char *file) |
char * | rox_filer_version (void) |
int | rox_filer_have_error (void) |
const char * | rox_filer_get_last_error (void) |
void | rox_filer_clear_error (void) |
Uses the filer's remote protocol to drive the filer. See Appendix C in ROX-Filer/Help/Manual.html
void rox_filer_action_init | ( | void | ) |
Initialize the filer action system. Calling this function is optional, the other file action functions will call this automatically if they detect that initialization has not been performed.
void rox_filer_clear_error | ( | void | ) |
Clear any recorded error.
void rox_filer_close_dir | ( | const char * | filename | ) |
Call the CloseDir method
[in] | filename | name of directory to close. |
void rox_filer_copy | ( | const char * | from, | |
const char * | to, | |||
const char * | leafname, | |||
int | quiet | |||
) |
Copy a file. If leafname is NULL
then copy object from to destination to, otherwise copy leafname in directory from to directory to.
[in] | from | object to copy or directory file is in |
[in] | to | path to copy object to, or destination directory. |
[in] | leafname | if not NULL the file in from to be copied to directory to. |
[in] | quiet | if TRUE then the operation is quiet (no confirmation required), if FALSE then confirmation is needed. If ROX_FILER_DEFAULT then the setting is taken from the filer's current options. |
void rox_filer_examine | ( | const char * | filename | ) |
Call the Examine method
[in] | filename | name of file to examine. |
char* rox_filer_file_type | ( | const char * | file | ) |
Determine the MIME type of a file by asking ROX-Filer.
[in] | file | name of file to identify |
NULL
if failed const char* rox_filer_get_last_error | ( | void | ) |
int rox_filer_have_error | ( | void | ) |
Check for error in talking to ROX-Filer. Errors are not normally reported back to the caller, but are recorded. Only the most recent error is returned.
void rox_filer_link | ( | const char * | from, | |
const char * | to, | |||
const char * | leafname | |||
) |
Create a symbolic link. If leafname is NULL
then link object from to destination to, otherwise link leafname in directory from to directory to.
[in] | from | object to link or directory file is in |
[in] | to | path to create link, or destination directory. |
[in] | leafname | if not NULL the file in from to be linked to directory to. |
void rox_filer_mount | ( | const char * | mountpoint, | |
int | quiet, | |||
int | opendir | |||
) |
Mount a known mountpoint (defined in /etc/fstab or /etc/vfstab).
[in] | mountpoint | path to mount point defined in system file |
[in] | quiet | if TRUE then the operation is quiet (no confirmation required), if FALSE then confirmation is needed. If ROX_FILER_DEFAULT then the setting is taken from the filer's current options. |
[in] | opendir | if TRUE then a new filer window is opened for the mounted directory. If ROX_FILER_DEFAULT then the setting is taken from the filer's current options. |
void rox_filer_move | ( | const char * | from, | |
const char * | to, | |||
const char * | leafname, | |||
int | quiet | |||
) |
Move a file. If leafname is NULL
then move object from to destination to, otherwise move leafname in directory from to directory to.
[in] | from | object to move or directory file is in |
[in] | to | path to move object to, or destination directory. |
[in] | leafname | if not NULL the file in from to be moved to directory to. |
[in] | quiet | if TRUE then the operation is quiet (no confirmation required), if FALSE then confirmation is needed. If ROX_FILER_DEFAULT then the setting is taken from the filer's current options. |
void rox_filer_open_dir | ( | const char * | filename | ) |
Call the OpenDir method
[in] | filename | name of directory to open. |
void rox_filer_panel | ( | const char * | name, | |
ROXPanelSide | side | |||
) |
Call the Panel method to set the panel on a side.
[in] | name | name of the panel |
[in] | side | side of the screen to place the panel |
void rox_filer_panel_add | ( | ROXPanelSide | side, | |
const char * | path, | |||
int | after | |||
) |
Add an object to a panel.
[in] | side | the panel to add to |
[in] | path | path name of object to be added. |
[in] | after | if FALSE the object is added to the end of the group of icons at the start, otherwise is is added to the start of the icons at the end. |
void rox_filer_pinboard | ( | const char * | name | ) |
Set the name of the pinboard.
[in] | name | name of the panel. |
void rox_filer_pinboard_add | ( | const char * | path, | |
int | x, | |||
int | y | |||
) |
Add an object to the pinboard.
[in] | path | path name of object to be added. |
[in] | x | x coordinate of position on pinboard |
[in] | y | y coordinate of position on pinboard |
void rox_filer_run | ( | const char * | filename | ) |
Call the Run method to run a file.
[in] | filename | name of object to run. |
void rox_filer_show | ( | const char * | directory, | |
const char * | leafname | |||
) |
Show a directory viewer with the named file highlighted.
[in] | directory | name of directory to show |
[in] | leafname | name of file in directory to highlight. |
char* rox_filer_version | ( | void | ) |
Get ROX-Filer's version string.
NULL
if failed