2012-08-06 18:52:09 +04:00
|
|
|
/*
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Sanel Zukan
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2009-10-03 11:33:08 +04:00
|
|
|
#ifndef __XDGMENUREADER_H__
|
|
|
|
#define __XDGMENUREADER_H__
|
|
|
|
|
|
|
|
#include <edelib/MenuItem.h>
|
2012-08-06 18:52:09 +04:00
|
|
|
#include <edelib/List.h>
|
|
|
|
#include <edelib/String.h>
|
2009-10-03 11:33:08 +04:00
|
|
|
|
|
|
|
EDELIB_NS_USING(MenuItem)
|
2012-08-06 18:52:09 +04:00
|
|
|
EDELIB_NS_USING(String)
|
|
|
|
EDELIB_NS_USING(list)
|
|
|
|
|
|
|
|
typedef list<String> StrList;
|
|
|
|
typedef list<String>::iterator StrListIt;
|
2009-10-03 11:33:08 +04:00
|
|
|
|
|
|
|
void xdg_menu_dump_for_test_suite(void);
|
2012-08-06 18:52:09 +04:00
|
|
|
/* all locations where menu files are stored */
|
|
|
|
void xdg_menu_applications_location(StrList &lst);
|
|
|
|
|
|
|
|
struct XdgMenuContent;
|
2009-10-03 11:33:08 +04:00
|
|
|
|
2012-08-06 18:52:09 +04:00
|
|
|
XdgMenuContent *xdg_menu_load(void);
|
|
|
|
void xdg_menu_delete(XdgMenuContent *c);
|
|
|
|
MenuItem *xdg_menu_to_fltk_menu(XdgMenuContent *c);
|
2009-10-03 11:33:08 +04:00
|
|
|
|
|
|
|
#endif
|