// Created: 23.09.98
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence: wxWindows license (part of wxExtra library)
+// Licence: wxWindows licence (part of wxExtra library)
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_MIMETYPE_H_
#include "wx/dynarray.h"
// fwd decls
-class WXDLLEXPORT wxIcon;
+#if defined(__WXMSW__)
+class WXDLLEXPORT wxIconLocation;
+#else
+class WXDLLEXPORT wxIconLocationBase;
+typedef wxIconLocationBase wxIconLocation;
+#endif //defined(__WXMSW__)
class WXDLLEXPORT wxFileTypeImpl;
class WXDLLEXPORT wxMimeTypesManagerImpl;
// fill passed in array with all extensions associated with this file
// type
bool GetExtensions(wxArrayString& extensions);
- // get the icon corresponding to this file type, the name of the file
- // where the icon resides is return in iconfile if !NULL and its index
- // in this file (Win-only) is in iconIndex
- bool GetIcon(wxIcon *icon,
- wxString *iconFile = NULL,
- int *iconIndex = NULL) const;
+ // get the icon corresponding to this file type and of the given size
+ bool GetIcon(wxIconLocation *iconloc) const;
// get a brief file type description ("*.txt" => "text document")
bool GetDescription(wxString *desc) const;