qtinternetradio/irqsettings/inc/irqsettings_p.h
changeset 14 896e9dbc5f19
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qtinternetradio/irqsettings/inc/irqsettings_p.h	Wed Aug 18 09:40:26 2010 +0300
@@ -0,0 +1,96 @@
+/*
+ * 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 IRQSETTINGS_P_H_
+#define IRQSETTINGS_P_H_
+
+#include <QString>
+#include "irqenums.h"
+#include "irviewdefinitions.h"
+
+class XQSettingsManager;
+
+class IRQSettingsPrivate
+{
+public:
+    IRQSettingsPrivate();
+    virtual ~IRQSettingsPrivate();
+
+    /**
+     *  Initialize, get the CIRSettings instance
+     *  @return bool
+     */
+    bool init();
+
+    QString privatePath();
+
+    bool isFlagTermsAndConditions(bool& aFlag);
+    void setFlagTermsAndConditions();
+    void reSetFlagTermsAndConditions();
+
+    bool getIRID(QString& aIRID);
+    int getVolumeSetting();
+    void setVolumeSetting(int aPlayVolume);
+    void setTimeOut(int aTimeOut);
+    int getTimeOut();
+    int getSongHistoryShow();
+    void setSongHistoryShow(int aShowFlag);
+
+    /**
+     * setStartingViewId()
+     * Sets the starting view Id in cenrep
+     */
+    void setStartingViewId(int aStartingViewId);
+
+    /**
+     * getStartingViewId()
+     * Gets the starting view Id from cenrep
+     */
+    bool getStartingViewId(TIRViewId& aStartingViewId);
+
+    void setPreferredQuality(IRQPreferredQuality aQualityValue);
+
+    /**
+     * getPreferredQuality()
+     * Gets the Preferred Quality from cenrep
+     */
+    IRQPreferredQuality getPreferredQuality() const;
+
+    /**
+     * getGlobalAdvFlag()
+     * Gets the global adv flag from cenrep. True: enable NAE adv
+     */
+    bool getGlobalAdvFlag(bool& aFlag);
+
+    bool getManuallyInputtedStationUrl(QString& aUrl);
+    void setManuallyInputtedStationUrl(const QString& aUrl);
+    bool getManuallyInputtedStationName(QString& aName);
+    void setManuallyInputtedStationName(const QString& aName);
+    bool getSearchText(QString& aSearchText);
+    void setSearchText(const QString& aSearchText);
+    
+    int getMinDiskSpaceRequired();    
+    bool getIdentifySongEnabled();
+    int getSongRecognitionAppUid();
+    QString getIsdsUrl();
+
+private:
+    XQSettingsManager* mSettingsManager;
+    QString     mPrivatePath; 
+};
+
+#endif /* IRQSETTINGS_P_H_ */