78 #include "DRMClockClient.h" |
78 #include "DRMClockClient.h" |
79 #include "DcfRep.h" |
79 #include "DcfRep.h" |
80 #include "DcfEntry.h" |
80 #include "DcfEntry.h" |
81 #include "Base64.h" |
81 #include "Base64.h" |
82 #include "drmsettingsplugininternalcrkeys.h" |
82 #include "drmsettingsplugininternalcrkeys.h" |
|
83 #include "buffercontainers.h" |
83 |
84 |
84 |
85 |
85 #define STUB_C_CLASS_IN_NAMESPACE( n, c ) namespace n { class c: public CBase { private: c(); public: virtual ~c(); }; } n::c::c() {} n::c::~c() {} |
86 #define STUB_C_CLASS_IN_NAMESPACE( n, c ) namespace n { class c: public CBase { private: c(); public: virtual ~c(); }; } n::c::c() {} n::c::~c() {} |
86 #define STUB_C_CLASS( c ) class c : public CBase { private: c(); public: virtual ~c(); }; c::c() {} c::~c() {} |
87 #define STUB_C_CLASS( c ) class c : public CBase { private: c(); public: virtual ~c(); }; c::c() {} c::~c() {} |
87 // This class does not do anything. |
88 // This class does not do anything. |
2160 LOGLIT( "-> CRoapEng::GetDeviceDetailsL" ) |
2161 LOGLIT( "-> CRoapEng::GetDeviceDetailsL" ) |
2161 |
2162 |
2162 #ifndef __WINS__ |
2163 #ifndef __WINS__ |
2163 TInt numPhone = 0; |
2164 TInt numPhone = 0; |
2164 TUint32 caps = 0; |
2165 TUint32 caps = 0; |
2165 TName tsyName; |
2166 DRM::CNameContainer* tsyName(NULL); |
2166 RMobilePhone phone; |
2167 RMobilePhone phone; |
2167 RTelServer etelServer; |
2168 RTelServer etelServer; |
2168 RTelServer::TPhoneInfo phoneInfo; |
2169 RTelServer::TPhoneInfo phoneInfo; |
2169 HBufC* version = NULL; |
2170 HBufC* version = NULL; |
2170 |
2171 |
2171 User::LeaveIfError( etelServer.Connect() ); |
2172 User::LeaveIfError( etelServer.Connect() ); |
2172 |
2173 |
2173 CleanupClosePushL( etelServer ); |
2174 CleanupClosePushL( etelServer ); |
2174 |
2175 |
2175 User::LeaveIfError( etelServer.LoadPhoneModule( KMmTsyModuleName ) ); |
2176 User::LeaveIfError( etelServer.LoadPhoneModule( KMmTsyModuleName ) ); |
2176 User::LeaveIfError( etelServer.EnumeratePhones( numPhone) ); |
2177 User::LeaveIfError( etelServer.EnumeratePhones( numPhone ) ); |
2177 |
2178 |
|
2179 tsyName = DRM::CNameContainer::NewLC(); |
2178 for (TInt i(0); i < numPhone; i++) |
2180 for (TInt i(0); i < numPhone; i++) |
2179 { |
2181 { |
2180 User::LeaveIfError( etelServer.GetPhoneInfo( i, phoneInfo ) ); |
2182 User::LeaveIfError( etelServer.GetPhoneInfo( i, phoneInfo ) ); |
2181 User::LeaveIfError( etelServer.GetTsyName( i,tsyName ) ); |
2183 User::LeaveIfError( etelServer.GetTsyName( i,tsyName->iBuffer ) ); |
2182 |
2184 |
2183 if ( tsyName.CompareF( KMmTsyModuleName ) == 0) |
2185 if ( !tsyName->iBuffer.CompareF( KMmTsyModuleName ) ) |
2184 { |
2186 { |
2185 break; |
2187 break; |
2186 } |
2188 } |
2187 } |
2189 } |
|
2190 CleanupStack::PopAndDestroy( tsyName ); |
2188 |
2191 |
2189 User::LeaveIfError( phone.Open( etelServer, phoneInfo.iName ) ); |
2192 User::LeaveIfError( phone.Open( etelServer, phoneInfo.iName ) ); |
2190 CleanupClosePushL( phone ); |
2193 CleanupClosePushL( phone ); |
2191 |
2194 |
2192 phone.GetIdentityCaps( caps ); |
2195 phone.GetIdentityCaps( caps ); |
2361 for ( TInt i = 0; i < aContentIDs.Count() && i < aTransIDs.Count(); i++ ) |
2364 for ( TInt i = 0; i < aContentIDs.Count() && i < aTransIDs.Count(); i++ ) |
2362 { |
2365 { |
2363 TPair pair; |
2366 TPair pair; |
2364 pair.iCid = aContentIDs[i]; |
2367 pair.iCid = aContentIDs[i]; |
2365 pair.iTtid = aTransIDs[i]; |
2368 pair.iTtid = aTransIDs[i]; |
2366 array.Append( pair ); |
2369 array.AppendL( pair ); |
2367 } |
2370 } |
2368 |
2371 |
2369 iDcfRep->SetTtid( array, status ); |
2372 iDcfRep->SetTtid( array, status ); |
2370 User::WaitForRequest( status ); |
2373 User::WaitForRequest( status ); |
2371 } |
2374 } |