Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

xetpan.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "intl.h"
#include "logging.h"
#include "defines.h"
#include "x_alloc.h"
#include "xetpan.h"
#include "conf.h"
#include "ui.h"
#include "remote.h"
#include "manager.h"

Include dependency graph for xetpan.c:

Include dependency graph

Compounds

struct  XePCLIOptions
struct  XePCmd

Enumerations

enum  XePCLIFlag {
  XETPAN_CLI_NONE = 0, XETPAN_CLI_COMPOSE = 1 << 0, XETPAN_CLI_SEND = 1 << 1, XETPAN_CLI_SEND_ALL_NOW = 1 << 2,
  XETPAN_CLI_RECEIVE = 1 << 3, XETPAN_CLI_STATUS = 1 << 4, XETPAN_CLI_CONFIG = 1 << 5, XETPAN_CLI_GTK = 1 << 6,
  XETPAN_CLI_TTY = 1 << 7, XETPAN_CLI_VIEW = 1 << 8, XETPAN_CLI_VERBOSE = 1 << 28, XETPAN_CLI_HELP = 1 << 29,
  XETPAN_CLI_VERSION = 1 << 30, XETPAN_CLI_ERROR = 1 << 31
}
enum  {
  XETPAN_OPT_SEARCH, XETPAN_OPT_FOUND, XETPAN_OPT_OK, XETPAN_OPT_NOTFOUND,
  XETPAN_OPT_ERROR, XETPAN_OPT_DONE, XETPAN_OPT_RETURN
}

Functions

int main (int argc, char **argv)
int a_XetPan_execute_remote_cmd (XePRemote *remote, char cmd, char *option)
int a_XetPan_should_end (XetPan *xetpan)
void a_XetPan_quit (XetPan *xetpan)

Variables

int verbose = 0
XetPanglobal_xetpan

Enumeration Type Documentation

anonymous enum
 

Enumeration values:
XETPAN_OPT_SEARCH 
XETPAN_OPT_FOUND 
XETPAN_OPT_OK 
XETPAN_OPT_NOTFOUND 
XETPAN_OPT_ERROR 
XETPAN_OPT_DONE 
XETPAN_OPT_RETURN 

enum XePCLIFlag
 

The different command line options.

Enumeration values:
XETPAN_CLI_NONE  No option.
XETPAN_CLI_COMPOSE  Compose a message.
XETPAN_CLI_SEND  Send messages in queue.
XETPAN_CLI_SEND_ALL_NOW  Send messages in queue, even if they were scheduled later.
XETPAN_CLI_RECEIVE  Retrieve messages.
XETPAN_CLI_STATUS  Display number of messages.
XETPAN_CLI_CONFIG  Set configuration directory.
XETPAN_CLI_GTK  Use GTK+ user interface.
XETPAN_CLI_TTY  Use ncurses, user interface.
XETPAN_CLI_VIEW  View a RFC822 message.
XETPAN_CLI_VERBOSE  Be verbose.
XETPAN_CLI_HELP  Display help for CLI options.
XETPAN_CLI_VERSION  Display version.
XETPAN_CLI_ERROR  Error: unrecognisable option.


Function Documentation

int a_XetPan_execute_remote_cmd XePRemote remote,
char  cmd,
char *  option
 

Execute a remote command. Called when a remote command is received.

Parameters:
xetpan the main XetPan structure.
cmd the command identifier (name).
option the argument of the option.
Returns:
XETPAN_NO_ERR if successful, XETPAN_ERR otherwise.

Here is the call graph for this function:

void a_XetPan_quit XetPan xetpan  ) 
 

Close all windows and exits UI loop

Here is the call graph for this function:

int a_XetPan_should_end XetPan xetpan  ) 
 

Check if XetPan should exits. XetPan exits when no more UI interfaces are running.

int main int  argc,
char **  argv
 

Here is the call graph for this function:


Variable Documentation

XetPan* global_xetpan
 

int verbose = 0
 

Verbosity level. Currently: 0 to be quiet, 1 to be verbose, 2 to help debugging


Generated on Wed Oct 22 15:57:17 2003 for XetPan by doxygen 1.3.2