PluginItems.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00010 /*
00011  *  This is free software; you can redistribute it and/or
00012  *  modify it under the terms of the GNU General Public
00013  *  License as published by the Free Software Foundation; either
00014  *  version 2 of the License, or (at your option) any later version.
00015  *
00016  *  This software is distributed in the hope that it will be useful,
00017  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  *  Lesser General Public License for more details.
00020  *
00021  *  You should have received a copy of the GNU General Public
00022  *  License along with this software; if not, write to the Free Software
00023  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024  *
00025  */
00026 
00027 #ifndef PLUGINITEMS_H
00028 #define PLUGINITEMS_H
00029 
00030 #include <wx/string.h>
00031 #include <wx/filename.h>
00032 #include <list>
00033 
00035 class PluginItem
00036 {
00037 public:
00041     PluginItem(wxFileName filename);
00043     const bool IsAPIValid() const;
00045     const wxString GetCategory() const;
00047     const wxFileName GetFilename() const;
00049     const wxString GetName() const;
00051     const wxString GetDescription() const;
00052 private:
00053     void ParseMetadata();
00054     wxString m_category;
00055     wxString m_name;
00056     wxFileName m_filename;
00057     wxString m_description;
00058     bool m_validAPI;
00059 };
00060 
00061 typedef std::list<PluginItem> PluginItems;
00063 bool comparePluginItem(PluginItem item1,PluginItem item2);
00064 
00065 #endif // PLUGINITEMS_H

Generated on Wed Sep 17 01:25:35 2014 for Hugintrunk by  doxygen 1.3.9.1