Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PluginItems.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
10 /*
11  * This is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This software is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public
22  * License along with this software. If not, see
23  * <http://www.gnu.org/licenses/>.
24  *
25  */
26 
27 #ifndef PLUGINITEMS_H
28 #define PLUGINITEMS_H
29 
30 #include <wx/string.h>
31 #include <wx/filename.h>
32 #include <list>
33 
36 {
37 public:
41  explicit PluginItem(wxFileName filename);
43  const bool IsAPIValid() const;
45  const wxString GetCategory() const;
47  const wxFileName GetFilename() const;
49  const wxString GetName() const;
51  const wxString GetDescription() const;
52 private:
53  void ParseMetadata();
54  wxString m_category;
55  wxString m_name;
56  wxFileName m_filename;
57  wxString m_description;
58  bool m_validAPI;
59 };
60 
61 typedef std::list<PluginItem> PluginItems;
64 
65 #endif // PLUGINITEMS_H
wxString m_category
Definition: PluginItems.h:54
std::list< PluginItem > PluginItems
Definition: PluginItems.h:61
wxFileName m_filename
Definition: PluginItems.h:56
bool m_validAPI
Definition: PluginItems.h:58
const wxString GetDescription() const
return description
wxString m_name
Definition: PluginItems.h:55
const wxFileName GetFilename() const
returns filename
bool comparePluginItem(PluginItem item1, PluginItem item2)
compares 2 plugin with category and name
Definition: PluginItems.cpp:39
PluginItem(wxFileName filename)
constructor
Definition: PluginItems.cpp:68
class for generating plugin menu items
Definition: PluginItems.h:35
const wxString GetName() const
return name from metadata
options wxIntPtr item2
const bool IsAPIValid() const
returns true, if plugin can run on given system and version
void ParseMetadata()
Definition: PluginItems.cpp:80
const wxString GetCategory() const
return category name
wxString m_description
Definition: PluginItems.h:57