// Created: 07.07.2006 (based on wxToolkitInfo)
// RCS-ID: $Id$
// Copyright: (c) 2006 Francesco Montorsi
-// License: wxWindows license
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_PLATINFO_H_
wxString Release;
wxString CodeName;
wxString Description;
-
+
bool operator==(const wxLinuxDistributionInfo& ldi) const
- {
+ {
return Id == ldi.Id &&
Release == ldi.Release &&
CodeName == ldi.CodeName &&
Description == ldi.Description;
}
-
+
bool operator!=(const wxLinuxDistributionInfo& ldi) const
{ return !(*this == ldi); }
};
static wxString GetArchName(wxArchitecture arch);
static wxString GetEndiannessName(wxEndianness end);
-
+
// getters
// -----------------
{ return m_osDesc; }
wxString GetDesktopEnvironment() const
{ return m_desktopEnv; }
-
+
static wxString GetOperatingSystemDirectory();
// doesn't make sense to store inside wxPlatformInfo the OS directory,
// thus this function is static; note that this function simply calls
- // wxGetOSDirectory() and is here just to make it easier for the user to
+ // wxGetOSDirectory() and is here just to make it easier for the user to
// find it that feature (global functions can be difficult to find in the docs)
// setters
{ m_arch = n; }
void SetEndianness(wxEndianness n)
{ m_endian = n; }
-
+
void SetDesktopEnvironment(const wxString& de)
{ m_desktopEnv = de; }
void SetLinuxDistributionInfo(const wxLinuxDistributionInfo& di)
!m_osDesc.IsEmpty() &&
m_tkVersionMajor != -1 && m_tkVersionMinor != -1 &&
m_port != wxPORT_UNKNOWN &&
- m_arch != wxARCH_INVALID &&
+ m_arch != wxARCH_INVALID &&
m_endian != wxENDIAN_INVALID;
-
+
// do not check linux-specific info; it's ok to have them empty
}
// Operating system ID.
wxOperatingSystemId m_os;
-
+
// Operating system description.
wxString m_osDesc;
-
-
+
+
// linux-specific
// -----------------
-
+
wxString m_desktopEnv;
wxLinuxDistributionInfo m_ldi;