This file is indexed.

/usr/include/gwenhywfar4/gwen-gui-cpp/cppgui.hpp is in libgwenhywfar-core-dev 4.15.3-5+b1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/***************************************************************************
    copyright   : (C) 2004 by Martin Preuss
    email       : martin@libchipcard.de

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

#ifndef CPPGUI_HPP
#define CPPGUI_HPP


#include <gwenhywfar/gui_be.h>
#include <gwenhywfar/i18n.h>
//#include <gwenhywfar/db.h>
//#include <gwenhywfar/passwdstore.h>

#define I18N(msg) GWEN_I18N_Translate(PACKAGE, msg)
#define I18S(msg) msg

#include <list>
#include <string>

class CppGui;

#include <gwen-gui-cpp/api.h>
#include <gwen-gui-cpp/cppdialog.hpp>


/**
 * @brief A C++ binding for the C module @ref GWEN_GUI
 *
 * This class simply is a C++ binding for the C module @ref GWEN_GUI.
 * It redirects C callbacks used by GWEN_GUI to virtual functions in
 * this class.
 *
 * @author Martin Preuss<martin@aquamaniac.de>
 */
class CPPGUI_API CppGui {
  friend class CppGuiLinker;

private:
  GWEN_GUI_CHECKCERT_FN _checkCertFn;
  GWEN_GUI_PRINT_FN _printFn;
  GWEN_GUI_GETPASSWORD_FN _getPasswordFn;
  GWEN_GUI_SETPASSWORDSTATUS_FN _setPasswordStatusFn;
  GWEN_GUI_EXEC_DIALOG_FN _execDialogFn;
  GWEN_GUI_OPEN_DIALOG_FN _openDialogFn;
  GWEN_GUI_CLOSE_DIALOG_FN _closeDialogFn;
  GWEN_GUI_RUN_DIALOG_FN _runDialogFn;

  GWEN_GUI_GET_FILENAME_FN _getFileNameFn;


public:
  CppGui();
  virtual ~CppGui();

  static CPPGUI_API CppGui *getCppGui();

  GWEN_GUI *getCInterface();

  void setPasswordDb(GWEN_DB_NODE *dbPasswords, int persistent);
  void setPasswordStore(GWEN_PASSWD_STORE *sto);

protected:
  GWEN_GUI *_gui;

  /** @name User Interaction
   *
   */
  /*@{*/

  /**
   * See @ref CppGui_Print
   */
  virtual int print(const char *docTitle,
                    const char *docType,
                    const char *descr,
                    const char *text,
                    uint32_t guiid);

  virtual int getPassword(uint32_t flags,
                          const char *token,
                          const char *title,
                          const char *text,
                          char *buffer,
                          int minLen,
                          int maxLen,
                          uint32_t guiid);

  virtual int setPasswordStatus(const char *token,
                                const char *pin,
                                GWEN_GUI_PASSWORD_STATUS status,
                                uint32_t guiid);

  virtual int checkCert(const GWEN_SSLCERTDESCR *cert,
                        GWEN_SYNCIO *sio,
                        uint32_t guiid);

  virtual int logHook(const char *logDomain,
                      GWEN_LOGGER_LEVEL priority, const char *s);

  virtual int execDialog(GWEN_DIALOG *dlg, uint32_t guiid);

  virtual int openDialog(GWEN_DIALOG *dlg, uint32_t guiid);
  virtual int closeDialog(GWEN_DIALOG *dlg);
  virtual int runDialog(GWEN_DIALOG *dlg, int untilEnd);

  virtual int getFileName(const char *caption,
                          GWEN_GUI_FILENAME_TYPE fnt,
                          uint32_t flags,
                          const char *patterns,
                          GWEN_BUFFER *pathBuffer,
                          uint32_t guiid);


  int checkCertBuiltIn(const GWEN_SSLCERTDESCR *cert,
                       GWEN_SYNCIO *sio,
                       uint32_t guiid);


};




#endif /* CPPGUI_HPP */