qtinternetradio/irqsonghistory/inc/irqsonghistoryinfo.h
changeset 0 09774dfdd46b
child 5 0930554dc389
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qtinternetradio/irqsonghistory/inc/irqsonghistoryinfo.h	Mon Apr 19 14:01:53 2010 +0300
@@ -0,0 +1,271 @@
+/*
+* 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 IRQSONGHISTORYINFO_H_
+#define IRQSONGHISTORYINFO_H_
+
+#include <QString>
+
+/**
+ * SongHistory meta data information wrapper.
+ */
+class IRQSongHistoryInfo
+{
+public:
+
+    /**
+     * Default constructor.
+     */
+    IMPORT_C IRQSongHistoryInfo();
+
+    /**
+    *IRQSongHistoryInfo::~IRQSongHistoryInfo()
+    *standard C++ destructor
+    */
+    IMPORT_C ~IRQSongHistoryInfo();
+
+    /**
+    *IRQSongHistoryInfo::getArtistName()
+    *Function to get artist name from a TDesC
+    *@return QString& instance
+    */
+    IMPORT_C const QString& getArtistName() const;
+
+    /**
+    *IRQSongHistoryInfo::getSongName()
+    *Function to get song name from a TDesC
+    *@return QString& instance
+    */
+    IMPORT_C const QString& getSongName() const;
+
+    /**
+    *IRQSongHistoryInfo::getStreamUrl()
+    *Function to get url name from a TDesC
+    *@return QString& instance
+    */
+    IMPORT_C const QString& getStreamUrl() const;
+
+    /**
+    *IRQSongHistoryInfo::getChannelName()
+    *Function to get channel name from a TDesC
+    *@return QString& instance
+    */
+    IMPORT_C const QString& getChannelName() const;
+
+    /**
+    *IRQSongHistoryInfo::getChannelDesc()
+    *Function to get channel Description
+    *@return QString& instance
+    */
+    IMPORT_C const QString& getChannelDesc() const;
+
+    /**
+    *IRQSongHistoryInfo::getImageURL()
+    *Function to get channel image URL
+    *@return QString& instance
+    */
+    IMPORT_C const QString& getImageUrl() const;
+
+    /**
+    *IRQSongHistoryInfo::getMusicStoreStatus()
+    *Function to get channel MusicStoreStatus
+    *@return QString& instance
+    */
+    IMPORT_C const QString& getMusicStoreStatus() const;
+
+    /**
+    *IRQSongHistoryInfo::getChannelType()
+    *Function to get channel Type
+    *@return int channeltype
+    */
+    IMPORT_C  int getChannelType() const;
+
+    /**
+    *IRQSongHistoryInfo::getChannelId()
+    *Function to get channel Id
+    *@return int channelId
+    */
+    IMPORT_C  int getChannelId() const;
+
+    /**
+    *IRQSongHistoryInfo::getBitrate()
+    *Function to get channel bitrate
+    *@return int bitrate
+    */
+    IMPORT_C  int getBitrate() const;
+
+    /**
+    *IRQSongHistoryInfo::setHistoryInfoL()
+    *Function to set songhistory info
+    */
+    void setHistoryInfo(const QString& aArtistName,
+                        const QString& aSongName,
+                        const QString& aStreamUrl,
+                        const QString& aChannelName,
+                        const QString& aChannelDesc,
+                        const QString& aImageUrl,
+                        const QString& aMusicStoreStatus, 
+                        int aChannelType,
+                        int aChannelId,
+                        int aBitrate);
+
+    /**
+    *IRQSongHistoryInfo::setArtistName()
+    *Function to set artist name from a QString
+    *@param QString aArtistName
+    */
+    void setArtistName(const QString& aArtistName);
+
+    /**
+    *IRQSongHistoryInfo::setSongName()
+    *Function to set song name from a QString
+    *@param QString aSongName
+    */
+    void setSongName (const QString& aSongName);
+
+    /**
+    *IRQSongHistoryInfo::setStreamUrl()
+    *Function to set stream url from a QString
+    *@param QString aStreamUrl
+    */
+    void setStreamUrl(const QString& aStreamUrl);
+
+    /**
+    *IRQSongHistoryInfo::setChannelName()
+    *Function to set channel name from a QString
+    *@param QString aChannelName
+    */
+    void setChannelName(const QString& aChannelName);
+
+    /**
+    *IRQSongHistoryInfo::setChannelDesc()
+    *Function to set channel Description
+    * @param QString aChannelDesc
+    */
+    void setChannelDesc(const QString& aChannelDesc);
+
+    /**
+    *IRQSongHistoryInfo::setImageURL()
+    *Function to set channel image URL
+    * @param QString aImageUrl
+    */
+    void setImageUrl(const QString& aImageUrl);
+
+    /**
+    *IRQSongHistoryInfo::setMusicStoreStatus()
+    *Function to set Channel MusicStoreStatus
+    *@param QString aMusicStoreStatus
+    */
+    void setMusicStoreStatus(const QString& aMusicStoreStatus);
+
+    /**
+    *IRQSongHistoryInfo::setChannelType()
+    *Function to set channel Type
+    *@param int aChannelType
+    */
+    void setChannelType(int aChannelType);
+
+    /**
+    *IRQSongHistoryInfo::setChannelId()
+    *Function to set channel Id
+    *@param int aChannelId
+    */
+    void setChannelId(int aChannelId);
+
+    /**
+    *IRQSongHistoryInfo::setBitrate()
+    *Function to set channel bitrate
+    *@param int aBitrate
+    */
+    void setBitrate(int aBitrate);
+
+private:
+
+    /**
+     * The name of the artist.
+     */
+    QString iArtistName;
+
+    /**
+     * The name of the song.
+     */
+    QString iSongName;
+
+    /**
+     * The stream URL.
+     */
+    QString iStreamUrl;
+
+    /**
+     * Channel Name.
+     */
+    QString iChannelName;
+
+    /**
+     * Channel Description.
+     */
+    QString iChannelDescription;
+
+    /**
+     * Channel's image Url.
+     */
+    QString iImageUrl;
+
+    /**
+     * Channel's MusicStoreStatus.
+     */
+    QString iMusicStoreStatus;
+
+    /**
+     * Channel Type.
+     */
+    int iChannelType;
+
+    /**
+     * Channel Id.
+     */
+    int iChannelId;
+
+    /**
+     * Channel bitrate.
+     */
+    int iBitrate;
+};
+
+class IRQSongInfo
+{
+public:
+  
+    
+    IMPORT_C void setSongName(const QString& aName);
+    IMPORT_C const QString& getSongName() const;
+    
+    IMPORT_C void setArtistName(const QString& aArtist);
+    IMPORT_C const QString& getArtistName()const;
+    
+    IMPORT_C void setMusicshopStatus(const QString& aStatus);
+    IMPORT_C const QString& getMusicshopStatus()const;
+    
+    IMPORT_C void setAllInfo(const QString& aName, const QString& aArtist, const QString& aStatus);
+    
+private:
+    
+    QString iSongName;
+    QString iSongArtist;
+    QString iMusicshopStatus;
+
+};
+#endif // IRQSONGHISTORYINFO_H_