equal
deleted
inserted
replaced
89 TInt error = KErrNone; |
89 TInt error = KErrNone; |
90 |
90 |
91 // Create a notifier instance |
91 // Create a notifier instance |
92 iNotifier = CDRMNotifier::NewL(); |
92 iNotifier = CDRMNotifier::NewL(); |
93 |
93 |
94 #ifndef __WINS__ |
94 #if 0 //ndef __WINS__ |
95 ConnectToPhoneL(); |
95 ConnectToPhoneL(); |
96 |
96 |
97 iObserver = CDRMNitzObserver::NewL( iPhone, const_cast<CDRMClock*>(this)); |
97 iObserver = CDRMNitzObserver::NewL( iPhone, const_cast<CDRMClock*>(this)); |
98 |
98 |
99 iObserver->Start(); |
99 iObserver->Start(); |
153 { |
153 { |
154 delete iNotifier; |
154 delete iNotifier; |
155 iNotifier = 0; |
155 iNotifier = 0; |
156 } |
156 } |
157 |
157 |
158 #ifndef __WINS__ |
158 #if 0 //ndef __WINS__ |
159 if(iObserver) |
159 if(iObserver) |
160 { |
160 { |
161 iObserver->Cancel(); |
161 iObserver->Cancel(); |
162 delete iObserver; |
162 delete iObserver; |
163 iObserver = 0; |
163 iObserver = 0; |
351 // --------------------------------------------------------- |
351 // --------------------------------------------------------- |
352 // |
352 // |
353 void CDRMClock::ConnectToPhoneL() |
353 void CDRMClock::ConnectToPhoneL() |
354 { |
354 { |
355 DRMLOG( _L( "CDRMClock::ConnectToPhoneL" ) ); |
355 DRMLOG( _L( "CDRMClock::ConnectToPhoneL" ) ); |
356 |
356 #if 0 |
357 const TInt KTriesToConnectServer(10); |
357 const TInt KTriesToConnectServer(10); |
358 const TInt KTimeBeforeRetryingServerConnection(100000); |
358 const TInt KTimeBeforeRetryingServerConnection(100000); |
359 TInt thisTry(0); |
359 TInt thisTry(0); |
360 TInt err(KErrNone); |
360 TInt err(KErrNone); |
361 TInt numPhone; |
361 TInt numPhone; |
388 |
388 |
389 User::LeaveIfError(iPhone.Open(iEtelServer, phoneInfo.iName)); |
389 User::LeaveIfError(iPhone.Open(iEtelServer, phoneInfo.iName)); |
390 |
390 |
391 iPhone.GetSubscriberId( status, imsi ); |
391 iPhone.GetSubscriberId( status, imsi ); |
392 User::WaitForRequest( status ); |
392 User::WaitForRequest( status ); |
393 |
393 |
394 DRMLOG( imsi ); |
394 DRMLOG( imsi ); |
|
395 #endif |
395 DRMLOG( _L( "CDRMClock::ConnectToPhoneL ok" ) ); |
396 DRMLOG( _L( "CDRMClock::ConnectToPhoneL ok" ) ); |
396 }; |
397 }; |
397 |
398 |
398 |
399 |
399 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
400 // ========================== OTHER EXPORTED FUNCTIONS ========================= |