~ubuntu-branches/debian/sid/gmtp/sid

« back to all changes in this revision

Viewing changes to main.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-01-24 17:21:38 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110124172138-30ssabr3ki093ji8
Tags: 0.8-1
* New upstream release.
* Refresh patches.
* Update debian/copyright.
* Add patch to improve the Italian translation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * File:   main.h
3
 
 * Author: darran
4
 
 *
5
 
 * Created on October 29, 2009, 5:01 PM
6
 
 */
7
 
 
8
 
#ifndef _MAIN_H
9
 
#define _MAIN_H
10
 
 
11
 
#ifdef  __cplusplus
12
 
extern "C" {
13
 
#endif
14
 
 
15
 
#include <libmtp.h>
16
 
    
17
 
typedef struct  {
18
 
        gboolean deviceConnected;
19
 
        gint numrawdevices;
20
 
    gint rawdeviceID;
21
 
    gint storagedeviceID;
22
 
 
23
 
        LIBMTP_raw_device_t * rawdevices;
24
 
        LIBMTP_mtpdevice_t *device;
25
 
        LIBMTP_devicestorage_t *devicestorage;
26
 
        LIBMTP_error_number_t err;
27
 
 
28
 
        GString *devicename;
29
 
        GString *manufacturername;
30
 
        GString *modelname;
31
 
        GString *serialnumber;
32
 
        GString *deviceversion;
33
 
        GString *syncpartner;
34
 
        GString *sectime;
35
 
        GString *devcert;
36
 
 
37
 
        // Raw device
38
 
        GString *Vendor;
39
 
        GString *Product;
40
 
        uint32_t VendorID;
41
 
        uint32_t ProductID;
42
 
        uint32_t DeviceID;
43
 
        uint32_t BusLoc;
44
 
 
45
 
        uint16_t *filetypes;
46
 
        uint16_t filetypes_len;
47
 
        uint8_t maxbattlevel;
48
 
        uint8_t currbattlevel;
49
 
 
50
 
} Device_Struct;
51
 
 
52
 
GtkWidget *windowMain;
53
 
GtkWidget *windowPrefsDialog;
54
 
GtkWidget *windowPropDialog;
55
 
GtkWidget *windowStatusBar;
56
 
GtkWidget *toolbuttonConnect;
57
 
GtkWidget *treeviewFiles;
58
 
 
59
 
Device_Struct DeviceMgr;
60
 
 
61
 
LIBMTP_file_t   *deviceFiles;
62
 
LIBMTP_folder_t *deviceFolders;
63
 
uint32_t currentFolderID;         // This is the ID of the current folder....
64
 
 
65
 
GString *file_icon_png;
66
 
GString *file_icon16_png;
67
 
GString *file_about_png;
68
 
 
69
 
// Misc Utility function;
70
 
void setFilePaths(int argc, char *argv[]);
71
 
gchar *getRuntimePath(int argc, char *argv[]);
72
 
 
73
 
 
74
 
#ifdef  __cplusplus
75
 
}
76
 
#endif
77
 
 
78
 
#endif  /* _MAIN_H */