mpviewplugins/mpdetailsviewplugin/inc/mpsharedata.h
changeset 29 8192e5b5c935
child 32 c163ef0b758d
equal deleted inserted replaced
25:3ec52facab4d 29:8192e5b5c935
       
     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 #ifdef SHARE_FUNC_ENABLED
       
    18 
       
    19 #ifndef MPSHAREDATA_H
       
    20 #define MPSHAREDATA_H
       
    21 
       
    22 #include <QObject>
       
    23 #include <QString>
       
    24 #include <QPixmap>
       
    25 
       
    26 class MpSongData;
       
    27 class HbIcon;
       
    28 
       
    29 /*!
       
    30   MpShareData represents the information that is
       
    31   used for sharing purposes. This information includes
       
    32   e.g. song information and user information.
       
    33 */
       
    34 class MpShareData : public QObject
       
    35 {
       
    36     Q_OBJECT
       
    37 
       
    38 public:
       
    39     MpShareData();
       
    40     virtual ~MpShareData();
       
    41 
       
    42     void setOwner( QObject* aOwner );
       
    43     void setSongData( MpSongData* aSongData );
       
    44     void setErrorMessage( const QString& s );
       
    45 	void setLanguage( const QString& s );
       
    46 
       
    47 public slots:
       
    48     QObject* owner() const;
       
    49     MpSongData* songData() const;
       
    50     QString errorMessage() const;
       
    51     void setUsername( const QString& s );
       
    52     QString username() const;
       
    53     void setPassword( const QString& s );
       
    54     QString password() const;
       
    55     QString objectType() const;
       
    56     QString objectContent() const;
       
    57     int objectReservedLength() const;
       
    58 	QString language() const;
       
    59     QString title() const;
       
    60     QString album() const;
       
    61     QString artist() const;
       
    62     QString albumArtBase64() const;
       
    63 
       
    64 private:
       
    65     QObject*    mOwner;    // NOT owned.
       
    66     MpSongData* mSongData; // NOT owned.
       
    67     QString     mErrorMessage;
       
    68     QString     mUsername;
       
    69     QString     mPassword;
       
    70 	QString     mLanguage;
       
    71 };
       
    72 
       
    73 #endif // MPSHAREDATA_H
       
    74 #endif // SHARE_FUNC_ENABLED