/usr/include/libgnomemm-2.6/libgnomemm/main.h is in libgnomemm-2.6-dev 2.30.0-1.
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 129 | // -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _LIBGNOMEMM_MAIN_H
#define _LIBGNOMEMM_MAIN_H
#include <glibmm.h>
/* $Id: main.hg,v 1.10 2006/04/03 06:17:28 murrayc Exp $ */
// -*- C++ -*- // this is for the .hg, I realize gensig puts one in
/* main.h
*
* Copyright (C) 1998 EMC Capital Management Inc.
* Developed by Havoc Pennington <hp@pobox.com>
*
* Copyright (C) 1999 The Gtk-- Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <libgnomemm/moduleinfo.h>
#include <libgnomemm/program.h>
#include <gtkmm/main.h>
//#include <libgnome/libgnome.h>
namespace Gnome
{
class Main : public Gtk::Main
{
public:
/** Initialises the current GNOME libraries for use by the application.
* Every GNOME application will need to use this early in its lifetime to initialize the various GNOME
* libraries in a consistent fashion. This function is very flexible in allowing the user to specify which
* modules should be initialised and any special parameter values that should be passed to these modules
* (along with processing commandline options).
* It loads the specified module_info, and pulls in all
* the dependencies. Programs that are not running in setuid or setgid mode will also load modules specified
* in the --load-modules and also in the GNOME_MODULES environment variable.
*
* @param app_id Application ID string.
* @param app_version Application Version String. This could be defined in your auto-generated config.h file.
* @param The module to init with this program. This should come from a call such as Gnome::UI::module_info_get().
* @param argc The number of command line arguments contanied in @a argv.
* @param argv A string array of command line arguments.
*/
Main(const Glib::ustring& app_id, const Glib::ustring& app_version,
const ModuleInfo& module_info,
int argc, char** argv);
/** Initialises the current GNOME libraries for use by the application, and takes a table of popt options (popt is the command line argument parsing library).
*
* Every GNOME application will need to use this early in its lifetime to initialize the various GNOME
* libraries in a consistent fashion. This function is very flexible in allowing the user to specify which
* modules should be initialised and any special parameter values that should be passed to these modules
* (along with processing commandline options).
* It loads the specified module_info, and pulls in all
* the dependencies. Programs that are not running in setuid or setgid mode will also load modules specified
* in the --load-modules and also in the GNOME_MODULES environment variable.
*
* @param app_id Application ID string.
* @param app_version Application Version String. This could be defined in your auto-generated config.h file.
* @param The module to init with this program. This should come from a call such as Gnome::UI::module_info_get().
* @param argc The number of command line arguments contanied in @a argv.
* @param argv A string array of command line arguments.
* @param options poptOption table with options to parse.
* @param popt flags.
* @param return_ctx The popt context is returned here.
*
* @deprecated Use the constructor that takes a Glib::OptionContext instead.
*/
Main(const Glib::ustring& app_id, const Glib::ustring& app_version,
const ModuleInfo& module_info,
int argc, char **argv,
const struct poptOption *options, int flags, poptContext* return_ctx);
/** Initialises the current GNOME libraries for use by the application, and takes an OptionContext for command line arguments.
*
* Every GNOME application will need to use this early in its lifetime to initialize the various GNOME
* libraries in a consistent fashion. This function is very flexible in allowing the user to specify which
* modules should be initialised and any special parameter values that should be passed to these modules
* (along with processing commandline options).
* It loads the specified module_info, and pulls in all
* the dependencies. Programs that are not running in setuid or setgid mode will also load modules specified
* in the --load-modules and also in the GNOME_MODULES environment variable.
*
* @param app_id Application ID string.
* @param app_version Application Version String. This could be defined in your auto-generated config.h file.
* @param The module to init with this program. This should come from a call such as Gnome::UI::module_info_get().
* @param argc The number of command line arguments contanied in @a argv.
* @param argv A string array of command line arguments.
* @param options Context with options to parse.
*/
Main(const Glib::ustring& app_id, const Glib::ustring& app_version,
const ModuleInfo& module_info,
int argc, char **argv,
Glib::OptionContext& options);
~Main();
protected:
Main();
void set_ids(const Glib::ustring& app_id,const Glib::ustring& app_version);
static char* app_id_;
static char* app_version_;
Glib::RefPtr<Program> m_refProgram;
};
} /* namespace Gnome */
#endif /* _LIBGNOMEMM_MAIN_H */
|