• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Engines

weatherutils.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (C) 2007-2008 by Shawn Starr <shawn.starr@rogers.com>           *
00003  * Copyright (C) 2008 by Teemu Rytilahti <tpr@d5k.net>                       *
00004  *                                                                           *
00005  * This library is free software; you can redistribute it and/or             *
00006  * modify it under the terms of the GNU Library General Public               *
00007  * License as published by the Free Software Foundation; either              *
00008  * version 2 of the License, or (at your option) any later version.          *
00009  *                                                                           *
00010  * This library is distributed in the hope that it will be useful,           *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00013  * Library General Public License for more details.                          *
00014  *                                                                           *
00015  * You should have received a copy of the GNU Library General Public License *
00016  * along with this library; see the file COPYING.LIB.  If not, write to      *
00017  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,      *
00018  * Boston, MA 02110-1301, USA.                                               *
00019  *****************************************************************************/
00020 
00021 /* Meteorological formula class */
00022 
00023 #ifndef _WEATHERUTILS_H
00024 #define _WEATHERUTILS_H
00025 
00026 #include "ion_export.h"
00027 
00028 namespace WeatherUtils
00029 {
00030 
00031 // Enumerations for unit types
00032 enum Unit { NoUnit = 0, Celsius, Fahrenheit, Kelvin, KilometersAnHour, MetersPerSecond, MilesAnHour, Kilopascals,
00033             InchesHG, Millibars, Hectopascals, Centimeters, Millimeters, Inches,
00034             Knots, Beaufort, Kilometers, Miles
00035           };
00036 
00037 // Convert Units
00038 
00046 ION_EXPORT float convert(float value, int srcUnit, int destUnit);
00047 
00054 ION_EXPORT QString getUnitString(int unit, bool plain = false);
00055 
00061 ION_EXPORT QString degreesToCardinal(float degrees);
00062 
00066 int knotsToBeaufort(float knots);
00067 int milesToBeaufort(float miles);
00068 int kilometersToBeaufort(float km);
00069 int metersPerSecondToBeaufort(float ms);
00070 
00071 } // WeatherUtils namespace
00072 
00073 #endif

Engines

Skip menu "Engines"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal