pcshareMgr/inc/control.h File Reference

control - handle input and keep state More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _shareMgr_t

Defines

#define DL_OK   0
#define DL_DOWNLOAD_FAILED   1
#define DL_CONNECTION_FAILED   2
#define DL_HISTORY_ACCESS_FAILED   3
#define DL_HISTORY_LOCATION_FAILED   4
#define DL_USER_PROFILE_MISSING   5
#define DL_EMAIL_MISSING   6
#define DL_PASSWORD_MISSING   7
#define DL_INIT_CONNECTION_FAILURE   8
#define DL_CONNECT_TO_SERVER_FAILURE   9

Typedefs

typedef struct _shareMgr_t shareMgr_t

Functions

shareMgr_tctrlInit (GtkWidget *topLevelWindow)
void ctrlDestroy (shareMgr_t *shMgr)


Detailed Description

control - handle input and keep state

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

<File description>="">

Definition in file control.h.


Define Documentation

#define DL_CONNECT_TO_SERVER_FAILURE   9

Definition at line 50 of file control.h.

#define DL_CONNECTION_FAILED   2

Definition at line 43 of file control.h.

#define DL_DOWNLOAD_FAILED   1

Definition at line 42 of file control.h.

#define DL_EMAIL_MISSING   6

Definition at line 47 of file control.h.

#define DL_HISTORY_ACCESS_FAILED   3

Definition at line 44 of file control.h.

#define DL_HISTORY_LOCATION_FAILED   4

Definition at line 45 of file control.h.

#define DL_INIT_CONNECTION_FAILURE   8

Definition at line 49 of file control.h.

#define DL_OK   0

Definition at line 41 of file control.h.

#define DL_PASSWORD_MISSING   7

Definition at line 48 of file control.h.

#define DL_USER_PROFILE_MISSING   5

Definition at line 46 of file control.h.


Typedef Documentation

typedef struct _shareMgr_t shareMgr_t


Function Documentation

void ctrlDestroy ( shareMgr_t shMgr  ) 

clean up allocated memory

Parameters:
dlMgr reference downloadMgrdata
Returns:
-

Definition at line 61 of file control.c.

00062 {
00063     g_return_if_fail(theShareMgr != NULL);
00064 
00065     DL_WARNPRINTF("Clean up wat needs to be cleared");
00066 
00067     g_free(theShareMgr);
00068 }

shareMgr_t* ctrlInit ( GtkWidget *  topLevelWindow  ) 

Init download manager data : - init screen layout

  • allocate downloadMgr_t, for maintaining state

Parameters:
window reference to the top level window
Returns:
reference to downloadMgr_t structure, NULL in case of failure

Definition at line 44 of file control.c.

00045 {
00046     shareMgr_t *theShareMgr = NULL;
00047 
00048     // => only request a refresh on the background expose event
00049     display_update_increase_level(VIEW_WINDOW_EXPOSE_LEVEL);
00050 
00051     // create one theShareMgr struct and fill it with zeros
00052     theShareMgr = g_new0(shareMgr_t, 1);
00053     theShareMgr->topLevelWindow = topLevelWindow;
00054     theShareMgr->returnVal      = DL_OK;
00055 
00056     viewInit(topLevelWindow);
00057     viewSetText();
00058     return theShareMgr;
00059 }

Here is the call graph for this function:


Generated on Sun Dec 14 17:16:47 2008 by  doxygen 1.5.6