|
1 /* |
|
2 * Copyright (c) 2006-2007 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 |
|
18 #ifndef IRLASTPLAYEDSONGS_H |
|
19 #define IRLASTPLAYEDSONGS_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 class RReadStream; |
|
24 class RWriteStream; |
|
25 |
|
26 class CIRLastPlayedSongs:public CBase |
|
27 { |
|
28 public: |
|
29 |
|
30 /** |
|
31 * Function : NewL |
|
32 * Function returns an instance of CIRLastPlayedSongs |
|
33 * Two phase constructor |
|
34 * @return instance of CIRLastPlayedSongs |
|
35 */ |
|
36 IMPORT_C static CIRLastPlayedSongs* NewL(); |
|
37 |
|
38 /** |
|
39 * CIRLastPlayedSongs::NewLC() |
|
40 * Static function |
|
41 * standard two phased constructor |
|
42 * @return *CIRLastPlayedSongs |
|
43 */ |
|
44 IMPORT_C static CIRLastPlayedSongs* NewLC(); |
|
45 |
|
46 /** |
|
47 * CIRLastPlayedSongs::~CIRLastPlayedSongs() |
|
48 * standard C++ destructor |
|
49 */ |
|
50 ~CIRLastPlayedSongs(); |
|
51 |
|
52 /** |
|
53 * CIRLastPlayedSongs::SetSongName() |
|
54 * Function to set song name from a TDesC |
|
55 * @param TDesC |
|
56 */ |
|
57 IMPORT_C void SetSongName( const TDesC&aSongName ); |
|
58 |
|
59 /** |
|
60 * CIRLastPlayedSongs::GetSongName() |
|
61 * Function to get song name from a TDesC |
|
62 * @return TDesc instance |
|
63 */ |
|
64 IMPORT_C TDesC& GetSongName(); |
|
65 |
|
66 /** |
|
67 * CIRLastPlayedSongs::SetArtistName() |
|
68 * Function to set artist name from a TDesC |
|
69 * @param TDesc |
|
70 */ |
|
71 IMPORT_C void SetArtistName( const TDesC& aArtistName ); |
|
72 |
|
73 /** |
|
74 * CIRLastPlayedSongs::GetArtistName() |
|
75 * Function to get artist name from a TDesC |
|
76 * @return TDesc instance |
|
77 */ |
|
78 IMPORT_C TDesC& GetArtistName(); |
|
79 |
|
80 /** |
|
81 * CIRLastPlayedSongs::ExternalizeL() |
|
82 * externalizes the data |
|
83 * @param RWriteStream |
|
84 */ |
|
85 IMPORT_C void ExternalizeL( RWriteStream& aWriteStream ); |
|
86 |
|
87 /** |
|
88 * CIRLastPlayedSongs::InternalizeL() |
|
89 * internalizes the data |
|
90 * @param RWriteStream |
|
91 */ |
|
92 IMPORT_C void InternalizeL( RReadStream& aReadStream ); |
|
93 |
|
94 /** |
|
95 * CIRLastPlayedSongs::=() |
|
96 * standard C++ copy constructor(deep copy) |
|
97 * @param CIRLastPlayedSongs |
|
98 * @return CIRLastPlayedSongs reference |
|
99 */ |
|
100 IMPORT_C CIRLastPlayedSongs& operator=( const CIRLastPlayedSongs& aSng ); |
|
101 |
|
102 protected: |
|
103 /** |
|
104 * CIRLastPlayedSongs::ConstructL() |
|
105 * standard second phase constructor |
|
106 */ |
|
107 void ConstructL(); |
|
108 |
|
109 private: |
|
110 HBufC* iSongName; |
|
111 HBufC* iArtistName; |
|
112 }; |
|
113 |
|
114 #endif //IRLASTPLAYEDSONGS_H |