Tests/SmfTestMusicnActivty/SmfTestMusicnActivity.h
author cgandhi
Mon, 11 Oct 2010 21:59:54 +0530
changeset 26 83d6a149c755
permissions -rw-r--r--
Submitting following changes - AuthApps for Last.fm and Twitter added API for checking ServiceAuthorization added for SMFCredMgrClient API added for forcefully removing credential details from SMFCredMgr Extra argument checks in SMfClient APIs APIs for service login and logout from SMFClient Redundant members removed from SmfServerSymbian DSM bug fixes Test Apps included
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     1
/****************************************************************************
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     2
**
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     3
** Trolltech hereby grants a license to use the Qt/Eclipse Integration
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     4
** plug-in (the software contained herein), in binary form, solely for the
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     5
** purpose of creating code to be used with Trolltech's Qt software.
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     6
**
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     7
** Qt Designer is licensed under the terms of the GNU General Public
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     8
** License versions 2.0 and 3.0 ("GPL License"). Trolltech offers users the
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
     9
** right to use certain no GPL licensed software under the terms of its GPL
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    10
** Exception version 1.2 (http://trolltech.com/products/qt/gplexception).
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    11
**
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    12
** THIS SOFTWARE IS PROVIDED BY TROLLTECH AND ITS CONTRIBUTORS (IF ANY) "AS
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    13
** IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    14
** TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    15
** PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    16
** OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    17
** EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    18
** PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    19
** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    20
** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    21
** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    22
** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    23
**
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    24
** Since we now have the GPL exception I think that the "special exception
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    25
** is no longer needed. The license text proposed above (other than the
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    26
** special exception portion of it) is the BSD license and we have added
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    27
** the BSD license as a permissible license under the exception.
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    28
**
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    29
****************************************************************************/
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    30
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    31
#ifndef SMFTESTMUSICNACTIVITY_H
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    32
#define SMFTESTMUSICNACTIVITY_H
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    33
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    34
#include <QtGui/QWidget>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    35
#include <smfprovider.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    36
#include <smfcontact.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    37
#include <smfglobal.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    38
#include <smfmusic.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    39
#include <smfplaylist.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    40
#include <smfmusicfingerprint.h>
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    41
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    42
#include "ui_SmfTestMusicnActivty.h"
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    43
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    44
class SmfContactFetcher;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    45
class SmfMusicService;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    46
//class SmfPlaylistServicePrivate;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    47
class SmfTestApp : public QWidget
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    48
{
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    49
    Q_OBJECT
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    50
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    51
public:
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    52
	SmfTestApp(QWidget *parent = 0);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    53
    ~SmfTestApp();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    54
    void getFacebookFriends();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    55
    void getTracksOfArtists();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    56
    void getTracksSimilar();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    57
    void getTracksOfAlbom();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    58
    void getPlaylist();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    59
    void getStoresOfTrac();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    60
    void addToPlaylist();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    61
    void postCurrentPlayingPlaylist();
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    62
            
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    63
private slots:
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    64
		
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    65
	void friendsListAvailable ( SmfContactList* list, SmfError error, SmfResultPage resultPage );
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    66
	void trackSearchAvailableSlot(SmfTrackInfoList* list, SmfError error, SmfResultPage resultPage);//SmfTrackInfoList *s1 ,SmfError err);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    67
    void playlistsListAvailableSlot(SmfPlaylistList* playlist ,SmfError error,SmfResultPage page);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    68
    void storelistsListAvailable(SmfProviderList* ,SmfError ,SmfResultPage);
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    69
private:
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    70
    Ui::SmfTestApp ui;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    71
    SmfContactFetcher *m_contactFetcher;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    72
    SmfProviderList *m_providerList;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    73
    SmfMusicSearch *m_tracksofartist;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    74
    SmfMusicSearch	*m_tracksimilar;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    75
    SmfMusicSearch	*m_trackofAlbum;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    76
    SmfPlaylistService *m_Playlist;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    77
    SmfMusicSearch	*m_Stores;
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    78
};
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    79
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    80
#endif // SMFTESTMUSICNACTIVITY_H
83d6a149c755 Submitting following changes -
cgandhi
parents:
diff changeset
    81