pidgin  2.13.0
About: Pidgin is a chat program (multi-protocol instant messaging client) which lets you log in to accounts on multiple chat networks simultaneously (old name "gaim").
  Fossies Dox: pidgin-2.13.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

gntft.c File Reference
#include <internal.h>
#include "finch.h"
#include <gnt.h>
#include <gntbox.h>
#include <gntbutton.h>
#include <gntcheckbox.h>
#include <gntlabel.h>
#include <gnttree.h>
#include "debug.h"
#include "notify.h"
#include "ft.h"
#include "prpl.h"
#include "util.h"
#include "gntft.h"
#include "prefs.h"
Include dependency graph for gntft.c:

Go to the source code of this file.

Data Structures

struct  PurpleGntXferDialog
 
struct  PurpleGntXferUiData
 

Macros

#define FINCHXFER(xfer)   (PurpleGntXferUiData *)FINCH_GET_DATA(xfer)
 

Enumerations

enum  {
  COLUMN_PROGRESS = 0, COLUMN_FILENAME, COLUMN_SIZE, COLUMN_SPEED,
  COLUMN_REMAINING, COLUMN_STATUS, NUM_COLUMNS
}
 

Functions

static void update_title_progress (void)
 
static void toggle_keep_open_cb (GntWidget *w)
 
static void toggle_clear_finished_cb (GntWidget *w)
 
static void remove_button_cb (GntButton *button)
 
static void stop_button_cb (GntButton *button)
 
void finch_xfer_dialog_new (void)
 
void finch_xfer_dialog_destroy ()
 
void finch_xfer_dialog_show ()
 
void finch_xfer_dialog_add_xfer (PurpleXfer *xfer)
 
void finch_xfer_dialog_remove_xfer (PurpleXfer *xfer)
 
void finch_xfer_dialog_cancel_xfer (PurpleXfer *xfer)
 
void finch_xfer_dialog_update_xfer (PurpleXfer *xfer)
 
static void finch_xfer_new_xfer (PurpleXfer *xfer)
 
static void finch_xfer_destroy (PurpleXfer *xfer)
 
static void finch_xfer_add_xfer (PurpleXfer *xfer)
 
static void finch_xfer_update_progress (PurpleXfer *xfer, double percent)
 
static void finch_xfer_cancel_local (PurpleXfer *xfer)
 
static void finch_xfer_cancel_remote (PurpleXfer *xfer)
 
void finch_xfers_init (void)
 
void finch_xfers_uninit (void)
 
PurpleXferUiOpsfinch_xfers_get_ui_ops (void)
 

Variables

static PurpleGntXferDialogxfer_dialog = NULL
 
static PurpleXferUiOps ops
 

Detailed Description

GNT File Transfer UI

Definition in file gntft.c.

Macro Definition Documentation

◆ FINCHXFER

#define FINCHXFER (   xfer)    (PurpleGntXferUiData *)FINCH_GET_DATA(xfer)

Definition at line 45 of file gntft.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
COLUMN_PROGRESS 
COLUMN_FILENAME 
COLUMN_SIZE 
COLUMN_SPEED 
COLUMN_REMAINING 
COLUMN_STATUS 
NUM_COLUMNS 

Definition at line 74 of file gntft.c.

Function Documentation

◆ finch_xfer_add_xfer()

static void finch_xfer_add_xfer ( PurpleXfer xfer)
static

Definition at line 489 of file gntft.c.

◆ finch_xfer_cancel_local()

static void finch_xfer_cancel_local ( PurpleXfer xfer)
static

Definition at line 506 of file gntft.c.

◆ finch_xfer_cancel_remote()

static void finch_xfer_cancel_remote ( PurpleXfer xfer)
static

Definition at line 513 of file gntft.c.

◆ finch_xfer_destroy()

static void finch_xfer_destroy ( PurpleXfer xfer)
static

Definition at line 476 of file gntft.c.

◆ finch_xfer_dialog_add_xfer()

void finch_xfer_dialog_add_xfer ( PurpleXfer xfer)

Adds a file transfer to the dialog.

Parameters
xferThe file transfer.

Definition at line 290 of file gntft.c.

Referenced by finch_xfer_dialog_new().

◆ finch_xfer_dialog_cancel_xfer()

void finch_xfer_dialog_cancel_xfer ( PurpleXfer xfer)

Indicate in a file transfer dialog that a transfer was cancelled.

Parameters
xferThe file transfer that was cancelled.

Definition at line 362 of file gntft.c.

◆ finch_xfer_dialog_destroy()

void finch_xfer_dialog_destroy ( void  )

Destroys a file transfer dialog.

Definition at line 273 of file gntft.c.

Referenced by finch_xfer_dialog_new().

◆ finch_xfer_dialog_new()

◆ finch_xfer_dialog_remove_xfer()

void finch_xfer_dialog_remove_xfer ( PurpleXfer xfer)

Removes a file transfer from the dialog.

Parameters
xferThe file transfer.

Definition at line 333 of file gntft.c.

Referenced by remove_button_cb(), and toggle_clear_finished_cb().

◆ finch_xfer_dialog_show()

void finch_xfer_dialog_show ( void  )

Displays the file transfer dialog given. If dialog is NULL, displays the default dialog, creating one if necessary

Definition at line 281 of file gntft.c.

Referenced by gnt_ui_init().

◆ finch_xfer_dialog_update_xfer()

void finch_xfer_dialog_update_xfer ( PurpleXfer xfer)

Updates the information for a transfer in the dialog.

Parameters
xferThe file transfer.

Definition at line 394 of file gntft.c.

Referenced by finch_xfer_dialog_new().

◆ finch_xfer_new_xfer()

static void finch_xfer_new_xfer ( PurpleXfer xfer)
static

Definition at line 466 of file gntft.c.

References data.

◆ finch_xfer_update_progress()

static void finch_xfer_update_progress ( PurpleXfer xfer,
double  percent 
)
static

Definition at line 499 of file gntft.c.

◆ finch_xfers_get_ui_ops()

PurpleXferUiOps* finch_xfers_get_ui_ops ( void  )

Returns the UI operations structure for the GNT file transfer UI.

Returns
The GNT file transfer UI operations structure.

Definition at line 553 of file gntft.c.

Referenced by gnt_ui_init().

◆ finch_xfers_init()

void finch_xfers_init ( void  )

Initializes the GNT file transfer system.

Definition at line 538 of file gntft.c.

References purple_prefs_add_none().

Referenced by gnt_ui_init().

◆ finch_xfers_uninit()

void finch_xfers_uninit ( void  )

Uninitializes the GNT file transfer system.

Definition at line 546 of file gntft.c.

◆ remove_button_cb()

◆ stop_button_cb()

◆ toggle_clear_finished_cb()

◆ toggle_keep_open_cb()

static void toggle_keep_open_cb ( GntWidget w)
static

Definition at line 135 of file gntft.c.

References PurpleGntXferDialog::keep_open, purple_prefs_set_bool(), and xfer_dialog.

Referenced by finch_xfer_dialog_new().

◆ update_title_progress()

Variable Documentation

◆ ops

◆ xfer_dialog

finch_xfer_destroy
static void finch_xfer_destroy(PurpleXfer *xfer)
Definition: gntft.c:476
finch_xfer_add_xfer
static void finch_xfer_add_xfer(PurpleXfer *xfer)
Definition: gntft.c:489
finch_xfer_cancel_remote
static void finch_xfer_cancel_remote(PurpleXfer *xfer)
Definition: gntft.c:513
finch_xfer_cancel_local
static void finch_xfer_cancel_local(PurpleXfer *xfer)
Definition: gntft.c:506
NULL
#define NULL
Definition: getopt1.c:52
finch_xfer_update_progress
static void finch_xfer_update_progress(PurpleXfer *xfer, double percent)
Definition: gntft.c:499
finch_xfer_new_xfer
static void finch_xfer_new_xfer(PurpleXfer *xfer)
Definition: gntft.c:466