ToutDoux : Reference manual
<<< Previous PageHomeUpNext Page >>>

TdDbConnect

Name

TdDbConnect -- Connect

Synopsis

enumTdConnectType;
strucTdDbConnect
TdConnectTypetd_db_connect_type_parse
(gchar *value);
gbooleantd_db_connect_close
(void);
gchar*td_db_connect_type_print
(TdConnectType value);
GtkObject*td_db_connect_new
(void);
gbooleantd_db_connect_load
(gchar *command,
GtkObject *connect_bookmark);
voidtd_db_connect_destroy
(TdDbConnect *connect);
gbooleantd_db_connect_open_oldfile
(gchar *file);
gbooleantd_db_connect_save
(gchar *command);

Description

Details

enum TdConnectType

typedef enum
{
TD_CONNECT_TYPE_FILE,
TD_CONNECT_TYPE_TEMPLATE,
TD_CONNECT_TYPE_DATABASE,
TD_CONNECT_TYPE_URL,
TD_CONNECT_TYPE_RECOVERY,
TD_CONNECT_TYPE_RECOVERY_START,
TD_CONNECT_TYPE_NONE,
}TdConnectType;

fr: Type de connexion

en: Connection type

TD_CONNECT_TYPE_FILEFichier - File
TD_CONNECT_TYPE_TEMPLATEGabarit - Template
TD_CONNECT_TYPE_DATABASEDatabase - Base de données
TD_CONNECT_TYPE_URLFichier distant - Remote file
TD_CONNECT_TYPE_RECOVERYRécupération - Recovery
TD_CONNECT_TYPE_RECOVERY_STARTRécupération démmarrage - Recovery starting
TD_CONNECT_TYPE_NONEAucun - None

struct TdDbConnect

struct TdDbConnect
{
gchar *name;
TdConnectType type;
gchar *interface;
gchar *host;
gchar *port;
gchar *base;
gchar *user;
gchar *password;
gchar *file;
gchar *template;
};

fr: Object connexion

en: Connection object

gchar *nameNom - Name
TdConnectType typeType
gchar *interfaceInterface
gchar *hostHôte - Host
gchar *portPort
gchar *baseBase
gchar *userUtilisateur - User
gchar *passwordMot de passe - Password
gchar *fileFichier - File
gchar *templateGabarit - Template

td_db_connect_type_parse ()

TdConnectTypetd_db_connect_type_parse
(gchar *value);

fr: Retourne le 'TdConnectType' correspondant à la chaîne de caractères

en: Returns the 'TdConnectType' corresponding the string

Return value: connect type

value : string

td_db_connect_close ()

gbooleantd_db_connect_close
(void);

fr: Ferme le fichier courant

en: Close the current file

Return value: FALSE on error


td_db_connect_type_print ()

gchar*td_db_connect_type_print
(TdConnectType value);

fr: Retourne la chaîne de caractères correspondant au type de connection

en: Returns the string corresponding the connect type

Return value: string

value : connect type

td_db_connect_new ()

GtkObject*td_db_connect_new
(void);

fr: Créé une nouvelle connexion

en: Creates a new connection

Return value: connection


td_db_connect_load ()

gbooleantd_db_connect_load
(gchar *command,
GtkObject *connect_bookmark);

fr: Charge un fichier

en: Load a file

Return value: FALSE on error

command : command
connect_bookmark : connection of a bookmark

td_db_connect_destroy ()

voidtd_db_connect_destroy
(TdDbConnect *connect);

fr: Détruit la connexion

en: Destroys the connection

connect : connection

td_db_connect_open_oldfile ()

gbooleantd_db_connect_open_oldfile
(gchar *file);

fr: Ouvre un fichier ayant un format obsolète pour traduction

en: Open a file with obsoleted format for translating

Return value: FALSE on error

file : file location

td_db_connect_save ()

gbooleantd_db_connect_save
(gchar *command);

fr: Enregistre un fichier (version gtk+)

en: Save a file (gtk+ version)

Return value: FALSE on error

command : command

See Also

<<< Previous PageHomeUpNext Page >>>
IndexIndex