qtinternetradio/irqsonghistory/inc/irqsonghistoryinfo.h
changeset 17 38bbf2dcd608
parent 16 5723da102db1
equal deleted inserted replaced
16:5723da102db1 17:38bbf2dcd608
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef IRQSONGHISTORYINFO_H_
       
    18 #define IRQSONGHISTORYINFO_H_
       
    19 
       
    20 #include <QString>
       
    21 
       
    22 /**
       
    23  * SongHistory meta data information wrapper.
       
    24  */
       
    25 class IRQSongHistoryInfo
       
    26 {
       
    27 public:
       
    28 
       
    29     /**
       
    30      * Default constructor.
       
    31      */
       
    32     IMPORT_C IRQSongHistoryInfo();
       
    33 
       
    34     /**
       
    35     *IRQSongHistoryInfo::~IRQSongHistoryInfo()
       
    36     *standard C++ destructor
       
    37     */
       
    38     IMPORT_C ~IRQSongHistoryInfo();
       
    39 
       
    40     /**
       
    41     *IRQSongHistoryInfo::getArtistName()
       
    42     *Function to get artist name from a TDesC
       
    43     *@return QString& instance
       
    44     */
       
    45     IMPORT_C const QString& getArtistName() const;
       
    46 
       
    47     /**
       
    48     *IRQSongHistoryInfo::getSongName()
       
    49     *Function to get song name from a TDesC
       
    50     *@return QString& instance
       
    51     */
       
    52     IMPORT_C const QString& getSongName() const;
       
    53 
       
    54     /**
       
    55     *IRQSongHistoryInfo::getStreamUrl()
       
    56     *Function to get url name from a TDesC
       
    57     *@return QString& instance
       
    58     */
       
    59     IMPORT_C const QString& getStreamUrl() const;
       
    60 
       
    61     /**
       
    62     *IRQSongHistoryInfo::getChannelName()
       
    63     *Function to get channel name from a TDesC
       
    64     *@return QString& instance
       
    65     */
       
    66     IMPORT_C const QString& getChannelName() const;
       
    67 
       
    68     /**
       
    69     *IRQSongHistoryInfo::getChannelDesc()
       
    70     *Function to get channel Description
       
    71     *@return QString& instance
       
    72     */
       
    73     IMPORT_C const QString& getChannelDesc() const;
       
    74 
       
    75     /**
       
    76     *IRQSongHistoryInfo::getImageURL()
       
    77     *Function to get channel image URL
       
    78     *@return QString& instance
       
    79     */
       
    80     IMPORT_C const QString& getImageUrl() const;
       
    81     /**
       
    82     *IRQSongHistoryInfo::getGenreName()
       
    83     *Function to get channel genre name
       
    84     *@return QString& instance
       
    85     */
       
    86     IMPORT_C const QString& getGenreName() const;
       
    87     /**
       
    88     *IRQSongHistoryInfo::getCountryName()
       
    89     *Function to get channel country Name
       
    90     *@return QString& instance
       
    91     */
       
    92     IMPORT_C const QString& getCountryName() const;
       
    93     /**
       
    94     *IRQSongHistoryInfo::getLanguageName()
       
    95     *Function to get channel language name
       
    96     *@return QString& instance
       
    97     */
       
    98     IMPORT_C const QString& getLanguageName() const;
       
    99 
       
   100     /**
       
   101     *IRQSongHistoryInfo::getMusicStoreStatus()
       
   102     *Function to get channel MusicStoreStatus
       
   103     *@return QString& instance
       
   104     */
       
   105     IMPORT_C const QString& getMusicStoreStatus() const;
       
   106 
       
   107     /**
       
   108     *IRQSongHistoryInfo::getChannelType()
       
   109     *Function to get channel Type
       
   110     *@return int channeltype
       
   111     */
       
   112     IMPORT_C  int getChannelType() const;
       
   113 
       
   114     /**
       
   115     *IRQSongHistoryInfo::getChannelId()
       
   116     *Function to get channel Id
       
   117     *@return int channelId
       
   118     */
       
   119     IMPORT_C  int getChannelId() const;
       
   120 
       
   121     /**
       
   122     *IRQSongHistoryInfo::getBitrate()
       
   123     *Function to get channel bitrate
       
   124     *@return int bitrate
       
   125     */
       
   126     IMPORT_C  int getBitrate() const;
       
   127 
       
   128     /**
       
   129     *IRQSongHistoryInfo::setHistoryInfoL()
       
   130     *Function to set songhistory info
       
   131     */
       
   132     void setHistoryInfo(const QString& aArtistName,
       
   133                         const QString& aSongName,
       
   134                         const QString& aStreamUrl,
       
   135                         const QString& aChannelName,
       
   136                         const QString& aChannelDesc,
       
   137                         const QString& aImageUrl,
       
   138                         const QString& aGenreName,
       
   139                         const QString& aCountryName,
       
   140                         const QString& aLanguageName,                        
       
   141                         const QString& aMusicStoreStatus, 
       
   142                         int aChannelType,
       
   143                         int aChannelId,
       
   144                         int aBitrate);
       
   145 
       
   146     /**
       
   147     *IRQSongHistoryInfo::setArtistName()
       
   148     *Function to set artist name from a QString
       
   149     *@param QString aArtistName
       
   150     */
       
   151     void setArtistName(const QString& aArtistName);
       
   152 
       
   153     /**
       
   154     *IRQSongHistoryInfo::setSongName()
       
   155     *Function to set song name from a QString
       
   156     *@param QString aSongName
       
   157     */
       
   158     void setSongName (const QString& aSongName);
       
   159 
       
   160     /**
       
   161     *IRQSongHistoryInfo::setStreamUrl()
       
   162     *Function to set stream url from a QString
       
   163     *@param QString aStreamUrl
       
   164     */
       
   165     void setStreamUrl(const QString& aStreamUrl);
       
   166 
       
   167     /**
       
   168     *IRQSongHistoryInfo::setChannelName()
       
   169     *Function to set channel name from a QString
       
   170     *@param QString aChannelName
       
   171     */
       
   172     void setChannelName(const QString& aChannelName);
       
   173 
       
   174     /**
       
   175     *IRQSongHistoryInfo::setChannelDesc()
       
   176     *Function to set channel Description
       
   177     * @param QString aChannelDesc
       
   178     */
       
   179     void setChannelDesc(const QString& aChannelDesc);
       
   180 
       
   181     /**
       
   182     *IRQSongHistoryInfo::setImageURL()
       
   183     *Function to set channel image URL
       
   184     * @param QString aImageUrl
       
   185     */
       
   186     void setImageUrl(const QString& aImageUrl);
       
   187     
       
   188     /**
       
   189     *IRQSongHistoryInfo::setGenreName()
       
   190     *Function to set channel genre name
       
   191     * @param QString aGenreName
       
   192     */
       
   193     void setGenreName(const QString& aGenreName);
       
   194         
       
   195     /**
       
   196     *IRQSongHistoryInfo::setCountryName()
       
   197     *Function to set channel country name
       
   198     * @param QString aCountryName
       
   199     */
       
   200     void setCountryName(const QString& aCountryName);
       
   201     
       
   202     /**
       
   203     *IRQSongHistoryInfo::setLanguageName()
       
   204     *Function to set channel language name
       
   205     * @param QString aLanguageName
       
   206     */
       
   207     void setLanguageName(const QString& aLanguageName);
       
   208 
       
   209     /**
       
   210     *IRQSongHistoryInfo::setMusicStoreStatus()
       
   211     *Function to set Channel MusicStoreStatus
       
   212     *@param QString aMusicStoreStatus
       
   213     */
       
   214     void setMusicStoreStatus(const QString& aMusicStoreStatus);
       
   215 
       
   216     /**
       
   217     *IRQSongHistoryInfo::setChannelType()
       
   218     *Function to set channel Type
       
   219     *@param int aChannelType
       
   220     */
       
   221     void setChannelType(int aChannelType);
       
   222 
       
   223     /**
       
   224     *IRQSongHistoryInfo::setChannelId()
       
   225     *Function to set channel Id
       
   226     *@param int aChannelId
       
   227     */
       
   228     void setChannelId(int aChannelId);
       
   229 
       
   230     /**
       
   231     *IRQSongHistoryInfo::setBitrate()
       
   232     *Function to set channel bitrate
       
   233     *@param int aBitrate
       
   234     */
       
   235     void setBitrate(int aBitrate);
       
   236 
       
   237 private:
       
   238 
       
   239     /**
       
   240      * The name of the artist.
       
   241      */
       
   242     QString iArtistName;
       
   243 
       
   244     /**
       
   245      * The name of the song.
       
   246      */
       
   247     QString iSongName;
       
   248 
       
   249     /**
       
   250      * The stream URL.
       
   251      */
       
   252     QString iStreamUrl;
       
   253 
       
   254     /**
       
   255      * Channel Name.
       
   256      */
       
   257     QString iChannelName;
       
   258 
       
   259     /**
       
   260      * Channel Description.
       
   261      */
       
   262     QString iChannelDescription;
       
   263 
       
   264     /**
       
   265      * Channel's image Url.
       
   266      */
       
   267     QString iImageUrl;
       
   268     QString iGenreName;
       
   269     QString iCountryName;
       
   270     QString iLanguageName;
       
   271     /**
       
   272      * Channel's MusicStoreStatus.
       
   273      */
       
   274     QString iMusicStoreStatus;
       
   275 
       
   276     /**
       
   277      * Channel Type.
       
   278      */
       
   279     int iChannelType;
       
   280 
       
   281     /**
       
   282      * Channel Id.
       
   283      */
       
   284     int iChannelId;
       
   285 
       
   286     /**
       
   287      * Channel bitrate.
       
   288      */
       
   289     int iBitrate;
       
   290 };
       
   291 
       
   292 class IRQSongInfo
       
   293 {
       
   294 public:
       
   295   
       
   296     
       
   297     IMPORT_C void setSongName(const QString& aName);
       
   298     IMPORT_C const QString& getSongName() const;
       
   299     
       
   300     IMPORT_C void setArtistName(const QString& aArtist);
       
   301     IMPORT_C const QString& getArtistName()const;
       
   302 
       
   303     IMPORT_C void setStationName(const QString& aStationName);
       
   304     IMPORT_C const QString& getStationName()const;
       
   305 
       
   306     IMPORT_C void setMusicshopStatus(const QString& aStatus);
       
   307     IMPORT_C const QString& getMusicshopStatus()const;
       
   308     
       
   309     IMPORT_C void setAllInfo(const QString& aName, const QString& aArtist, const QString& aStationName, const QString& aStatus);
       
   310     
       
   311 private:
       
   312     
       
   313     QString iSongName;
       
   314     QString iSongArtist;
       
   315     QString iStationName;
       
   316     QString iMusicshopStatus;
       
   317 
       
   318 };
       
   319 #endif // IRQSONGHISTORYINFO_H_