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