equal
deleted
inserted
replaced
22 ** Nokia at developer.feedback@nokia.com. |
22 ** Nokia at developer.feedback@nokia.com. |
23 ** |
23 ** |
24 ****************************************************************************/ |
24 ****************************************************************************/ |
25 |
25 |
26 #include "themeclientsymbian.h" |
26 #include "themeclientsymbian.h" |
|
27 #include <e32property.h> |
27 #include <QDebug> |
28 #include <QDebug> |
28 |
29 |
29 |
30 |
30 const TUint kDefaultMessageSlots=4; |
31 const TUint kDefaultMessageSlots=4; |
31 |
32 |
75 /** |
76 /** |
76 * changeTheme |
77 * changeTheme |
77 */ |
78 */ |
78 TInt ThemeClientSymbian::changeTheme(const QString& aString ) |
79 TInt ThemeClientSymbian::changeTheme(const QString& aString ) |
79 { |
80 { |
80 TBuf<256> themeName(aString.utf16()); |
81 TInt err = KErrGeneral; |
81 TIpcArgs args(&themeName); |
82 RProperty themeRequestProp; |
82 TInt err = SendReceive(EThemeSelection, args); |
83 |
|
84 User::LeaveIfError( themeRequestProp.Attach( KServerUid3, KNewThemeForThemeChanger ) ); |
|
85 |
|
86 TBuf<256> newThemenameChangeRequest; |
|
87 _LIT(KThemeRequestFormatter, "%d:%S"); |
|
88 TBuf<256> newThemename(aString.utf16()); |
|
89 newThemenameChangeRequest.Format( KThemeRequestFormatter, EThemeSelection, &newThemename); |
|
90 err = themeRequestProp.Set(newThemenameChangeRequest); |
|
91 themeRequestProp.Close(); |
83 return err; |
92 return err; |
84 } |
93 } |
85 |
94 |
86 bool ThemeClientSymbian::isConnected() |
95 bool ThemeClientSymbian::isConnected() |
87 { |
96 { |