Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

rox_filer_action.c File Reference

Drive the filer via the SOAP calls. More...

#include "rox-clib.h"
#include <stdlib.h>
#include <stdio.h>
#include <glib.h>
#include <libxml/parser.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)


Detailed Description

Drive the filer via the SOAP calls.

Uses the filer's remote protocol to drive the filer. See Appendix C in ROX-Filer/Help/Manual.html

Author:
Stephen Watson
Version:
Id
rox_filer_action.c,v 1.12 2005/09/10 16:16:14 stephen Exp

Function Documentation

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

Parameters:
[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.

Parameters:
[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

Parameters:
[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.

Parameters:
[in] file name of file to identify
Returns:
MIME type of file, in form "media/sub-type" (pass to g_free() when done), or NULL if failed

const char* rox_filer_get_last_error void   ) 
 

Returns:
text string containing last known error, do not free

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.

Returns:
non-zero if an error is recorded.

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.

Parameters:
[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).

Parameters:
[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.

Parameters:
[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

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[in] name name of the panel.

void rox_filer_pinboard_add const char *  path,
int  x,
int  y
 

Add an object to the pinboard.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Returns:
version string (pass to g_free() when done), or NULL if failed


Generated on Sat Oct 22 17:49:14 2005 for ROX-CLib by doxygen 1.3.8