File: cppgui_p.hpp

package info (click to toggle)
libgwenhywfar 5.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,300 kB
  • sloc: ansic: 135,622; cpp: 11,186; sh: 5,025; objc: 2,548; makefile: 2,357; xml: 1,882
file content (79 lines) | stat: -rw-r--r-- 3,004 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/***************************************************************************
    begin       : Mon Mar 01 2004
    copyright   : (C) 2004-2010 by Martin Preuss
    email       : martin@libchipcard.de

 ***************************************************************************
 *          Please see toplevel file COPYING for license details           *
 ***************************************************************************/

#ifndef CPPGUI_P_HPP
#define CPPGUI_P_HPP


#include "cppgui.hpp"


class CppGuiLinker {
  friend class CppGui;

  static int GWENHYWFAR_CB Print(GWEN_GUI *gui,
                                 const char *docTitle,
                                 const char *docType,
                                 const char *descr,
                                 const char *text,
                                 uint32_t guiid);

  static int GWENHYWFAR_CB GetPassword(GWEN_GUI *gui,
                                       uint32_t flags,
                                       const char *token,
                                       const char *title,
                                       const char *text,
                                       char *buffer,
                                       int minLen,
                                       int maxLen,
                                       GWEN_GUI_PASSWORD_METHOD methodId,
                                       GWEN_DB_NODE *methodParams,
                                       uint32_t guiid);

  static int GWENHYWFAR_CB SetPasswordStatus(GWEN_GUI *gui,
      const char *token,
      const char *pin,
      GWEN_GUI_PASSWORD_STATUS status,
      uint32_t guiid);

  static int GWENHYWFAR_CB CheckCert(GWEN_GUI *gui,
                                     const GWEN_SSLCERTDESCR *cert,
                                     GWEN_SYNCIO *io,
                                     uint32_t guiid);

  static int GWENHYWFAR_CB LogHook(GWEN_GUI *gui,
                                   const char *logDomain,
                                   GWEN_LOGGER_LEVEL priority, const char *s);

  static int GWENHYWFAR_CB ExecDialog(GWEN_GUI *gui,
                                      GWEN_DIALOG *dlg,
                                      uint32_t guiid);

  static int GWENHYWFAR_CB OpenDialog(GWEN_GUI *gui, GWEN_DIALOG *dlg, uint32_t guiid);
  static int GWENHYWFAR_CB CloseDialog(GWEN_GUI *gui, GWEN_DIALOG *dlg);
  static int GWENHYWFAR_CB RunDialog(GWEN_GUI *gui, GWEN_DIALOG *dlg, int untilEnd);


  static int GWENHYWFAR_CB GetFileName(GWEN_GUI *gui,
                                       const char *caption,
                                       GWEN_GUI_FILENAME_TYPE fnt,
                                       uint32_t flags,
                                       const char *patterns,
                                       GWEN_BUFFER *pathBuffer,
                                       uint32_t guiid);

  static GWENHYWFAR_CB void freeData(void *bp, void *p);
};




#endif /* CPPGUI_P_HPP */