--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/common/radio_global.h Fri Jun 11 13:38:32 2010 +0300
@@ -0,0 +1,231 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+#ifndef RADIO_GLOBAL_H_
+#define RADIO_GLOBAL_H_
+
+// System includes
+#include <QtGlobal>
+#include <qnamespace.h>
+
+// Constants
+
+/**
+ * Radio frequency multiplier
+ */
+const int FREQUENCY_MULTIPLIER = 1000000;
+
+const int ONE_HERTZ = FREQUENCY_MULTIPLIER;
+
+/**
+ * Desired amount of steps in the volume control in the UI
+ */
+const int MAXIMUM_VOLUME_LEVEL = 20;
+
+namespace RadioRole
+{
+ enum Role
+ {
+ RadioStationRole = Qt::UserRole + 1,
+ ToggleFavoriteRole,
+ IsFavoriteRole
+ };
+}
+
+/**
+ * Radio Text Plus tag ids
+ */
+namespace RtPlus
+{
+ enum Tag
+ {
+ Dummy = 0,
+ Title = 1,
+ Artist = 4,
+ Band = 9,
+ Homepage = 39
+ };
+}
+
+namespace GenreTarget
+{
+ enum Target
+ {
+ Carousel,
+ StationsList,
+ HomeScreen
+ };
+}
+
+namespace Seek
+{
+ enum Direction
+ {
+ Down,
+ Up
+ };
+
+ enum State
+ {
+ NotSeeking,
+ SeekingUp,
+ SeekingDown
+ };
+}
+
+namespace Scan
+{
+ enum Status
+ {
+ NotScanning,
+ ScanningInMainView,
+ ScanningInStationsView
+ };
+}
+
+namespace Scroll
+{
+ enum Direction
+ {
+ Shortest,
+ Left,
+ Right
+ };
+}
+
+namespace StationSkip
+{
+ enum Mode
+ {
+ Previous,
+ Next,
+ PreviousFavorite,
+ NextFavorite
+ };
+}
+
+namespace TuneReason
+{
+ enum Reason
+ {
+ Unspecified,
+ FrequencyStrip,
+ ManualSeekUpdate,
+ ManualSeekTune,
+ StationCarousel,
+ StationsList,
+ Skip,
+ Seek,
+ StationScanInitialization,
+ StationScan,
+ StationScanFinalize,
+ StationScanNoStationsFound,
+ SkipFromEngine
+ };
+}
+
+namespace RadioRegion
+{
+ enum Region
+ {
+ None = -1,
+ Default,
+ Japan,
+ America,
+ Poland
+ };
+}
+
+namespace GenreEurope
+{
+ enum Europe
+ {
+ RdsNone,
+ RdsNews,
+ RdsCurrentAffairs,
+ RdsInformation,
+ RdsSport,
+ RdsEducation,
+ RdsDrama,
+ RdsCulture,
+ RdsScience,
+ RdsVariedSpeech,
+ RdsPopMusic,
+ RdsRockMusic,
+ RdsEasyListening,
+ RdsLightClassical,
+ RdsSeriousClassical,
+ RdsOtherMusic,
+ RdsWeather,
+ RdsFinance,
+ RdsChildrensProgrammes,
+ RdsSocialAffairs,
+ RdsReligion,
+ RdsPhoneIn,
+ RdsTravel,
+ RdsLeisure,
+ RdsJazzMusic,
+ RdsCountryMusic,
+ RdsNationalMusic,
+ RdsOldiesMusic,
+ RdsFolkMusic,
+ RdsDocumentary,
+ RdsAlarmTest,
+ RdsAlarm
+ };
+}
+
+namespace GenreAmerica
+{
+ enum America
+ {
+ RbdsNone,
+ RbdsNews,
+ RbdsInformation,
+ RbdsSports,
+ RbdsTalk,
+ RbdsRock,
+ RbdsClassicRock,
+ RbdsAdultHits,
+ RbdsSoftRock,
+ RbdsTop40,
+ RbdsCountry,
+ RbdsOldies,
+ RbdsSoft,
+ RbdsNostalgia,
+ RbdsJazz,
+ RbdsClassical,
+ RbdsRhythmAndBlues,
+ RbdsSoftRhythmAndBlues,
+ RbdsLanguage,
+ RbdsReligiousMusic,
+ RbdsReligiousTalk,
+ RbdsPersonality,
+ RbdsPublic,
+ RbdsCollege,
+ RbdsUnassigned1,
+ RbdsUnassigned2,
+ RbdsUnassigned3,
+ RbdsUnassigned4,
+ RbdsUnassigned5,
+ RbdsWeather,
+ RbdsEmergencyTest,
+ RbdsEmergency
+ };
+}
+
+#endif // RADIO_GLOBAL_H_