Ede.h
/*
* $Id: String.h 2594 2009-03-25 14:54:54Z karijes $
*
* EDE specific code
* Copyright (c) 2010-2012 edelib authors
*
* 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 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EDELIB_EDE_H__
#define __EDELIB_EDE_H__
#include "edelib-global.h"
#include "Nls.h"
EDELIB_NS_BEGIN
class EDELIB_API ApplicationBootstrap {
private:
int flags;
public:
ApplicationBootstrap(const char *name, const char *nls_path);
~ApplicationBootstrap();
};
EDELIB_NS_END
#define EDE_APPLICATION_WITH_NLS_PATH(name, path) \
extern int FL_NORMAL_SIZE; \
FL_NORMAL_SIZE = 12; \
EDELIB_NS_PREPEND(ApplicationBootstrap) __ede_application_bootstrap(name, path)
#define EDE_CONSOLE_APPLICATION_WITH_NLS_PATH(name, path) \
EDELIB_NS_PREPEND(nls_support_init(name, path)
#ifdef PREFIX
# define EDE_APPLICATION(name) EDE_APPLICATION_WITH_NLS_PATH(name, PREFIX"/share/locale")
# define EDE_CONSOLE_APPLICATION(name) EDE_CONSOLE_APPLICATION_WITH_NLS_PATH(name, PREFIX"/share/locale")
#else
# define EDE_APPLICATION(name) EDE_APPLICATION_WITH_NLS_PATH(name, "dummy_path")
# define EDE_CONSOLE_APPLICATION(name) EDE_CONSOLE_APPLICATION_WITH_NLS_PATH(name, "dummy_path")
#endif
#endif
edelib::ApplicationBootstrap
EDE application bootstrapper.
Definition: Ede.h:39