|
1 /* |
|
2 * Copyright (c) 2002-2004 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 the License "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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "HttpClientAppInstance.h" |
|
22 #include "HttpClientApp.h" |
|
23 #include "HttpDownloadManagerServerEngine.h" |
|
24 #include "HttpDownloadMgrLogger.h" |
|
25 |
|
26 // EXTERNAL DATA STRUCTURES |
|
27 //extern ?external_data; |
|
28 |
|
29 // EXTERNAL FUNCTION PROTOTYPES |
|
30 //extern ?external_function( ?arg_type,?arg_type ); |
|
31 |
|
32 // CONSTANTS |
|
33 //const ?type ?constant_var = ?constant; |
|
34 |
|
35 // MACROS |
|
36 //#define ?macro ?macro_def |
|
37 |
|
38 // LOCAL CONSTANTS AND MACROS |
|
39 //const ?type ?constant_var = ?constant; |
|
40 //#define ?macro_name ?macro_def |
|
41 |
|
42 // MODULE DATA STRUCTURES |
|
43 //enum ?declaration |
|
44 //typedef ?declaration |
|
45 |
|
46 // LOCAL FUNCTION PROTOTYPES |
|
47 //?type ?function_name( ?arg_type, ?arg_type ); |
|
48 |
|
49 // FORWARD DECLARATIONS |
|
50 //class ?FORWARD_CLASSNAME; |
|
51 |
|
52 // ============================= LOCAL FUNCTIONS =============================== |
|
53 |
|
54 // ============================ MEMBER FUNCTIONS =============================== |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // CHttpClientAppInstance::CHttpClientAppInstance |
|
58 // C++ default constructor can NOT contain any code, that |
|
59 // might leave. |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 CHttpClientAppInstance::CHttpClientAppInstance( CHttpClientApp* aClientApp, |
|
63 CHttpConnHandler* aConnHandler, |
|
64 TBool aMaster, |
|
65 TInt aInstanceId, |
|
66 MDownloadStateObserver* aObserver ) |
|
67 : iClientApp( aClientApp ) |
|
68 , iInstanceId( aInstanceId ) |
|
69 , iSilentMode( EFalse ) |
|
70 , iExitAction( EExitNothing ) |
|
71 , iConnHandler( aConnHandler ) |
|
72 , iObserver( aObserver ) |
|
73 , iMaster( aMaster ) |
|
74 , iCookies( ETrue ) |
|
75 , iAutoConnect( ETrue ) |
|
76 , iFotaDownload( EFalse ) |
|
77 { |
|
78 CLOG_CREATE; |
|
79 } |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CHttpClientAppInstance::ConstructL |
|
83 // Symbian 2nd phase constructor can leave. |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 void CHttpClientAppInstance::ConstructL() |
|
87 { |
|
88 CLOG_NAME_2( _L("CHttpClientAppInstance_%x_%x"), |
|
89 iClientApp->AppUid(), |
|
90 iInstanceId ); |
|
91 |
|
92 iProgressiveDownload = iClientApp->Engine()->ProgressiveDownloadFeature(); |
|
93 } |
|
94 |
|
95 // ----------------------------------------------------------------------------- |
|
96 // CHttpClientAppInstance::NewL |
|
97 // Two-phased constructor. |
|
98 // ----------------------------------------------------------------------------- |
|
99 // |
|
100 CHttpClientAppInstance* |
|
101 CHttpClientAppInstance::NewL( CHttpClientApp* aClientApp, |
|
102 CHttpConnHandler* aConnHandler, |
|
103 TBool aMaster, |
|
104 TInt aInstanceId, |
|
105 MDownloadStateObserver* aObserver ) |
|
106 { |
|
107 __ASSERT_DEBUG( aClientApp, DMPanic( KErrArgument ) ); |
|
108 |
|
109 CHttpClientAppInstance* self = new( ELeave ) |
|
110 CHttpClientAppInstance( aClientApp, |
|
111 aConnHandler, |
|
112 aMaster, |
|
113 aInstanceId, |
|
114 aObserver ); |
|
115 |
|
116 CleanupStack::PushL( self ); |
|
117 self->ConstructL(); |
|
118 CleanupStack::Pop(); |
|
119 |
|
120 return self; |
|
121 } |
|
122 |
|
123 |
|
124 // Destructor |
|
125 CHttpClientAppInstance::~CHttpClientAppInstance() |
|
126 { |
|
127 CLOG_CLOSE; |
|
128 } |
|
129 |
|
130 // ----------------------------------------------------------------------------- |
|
131 // CHttpClientAppInstance::SetObserver |
|
132 // ?implementation_description |
|
133 // (other items were commented in a header). |
|
134 // ----------------------------------------------------------------------------- |
|
135 // |
|
136 EXPORT_C void |
|
137 CHttpClientAppInstance::SetObserver( MDownloadStateObserver* aObserver ) |
|
138 { |
|
139 iObserver = aObserver; |
|
140 } |
|
141 |
|
142 // ----------------------------------------------------------------------------- |
|
143 // CHttpClientAppInstance::SearchDownloadWithUrl |
|
144 // ?implementation_description |
|
145 // (other items were commented in a header). |
|
146 // ----------------------------------------------------------------------------- |
|
147 // |
|
148 EXPORT_C CHttpDownload* |
|
149 CHttpClientAppInstance::SearchDownloadWithUrl( const TDesC8& /*aUrl*/ ) |
|
150 { |
|
151 DMPanic( KErrNotSupported ); |
|
152 |
|
153 return NULL; |
|
154 } |
|
155 |
|
156 // ----------------------------------------------------------------------------- |
|
157 // CHttpClientAppInstance::CreateNewDownloadL |
|
158 // ?implementation_description |
|
159 // (other items were commented in a header). |
|
160 // ----------------------------------------------------------------------------- |
|
161 // |
|
162 EXPORT_C CHttpDownload* |
|
163 CHttpClientAppInstance::CreateNewDownloadL( const TDesC8& aUrl ) |
|
164 { |
|
165 return iClientApp->CreateNewDownloadL( this, aUrl ); |
|
166 } |
|
167 |
|
168 // ----------------------------------------------------------------------------- |
|
169 // CHttpClientAppInstance::AttachDownloadL |
|
170 // ?implementation_description |
|
171 // (other items were commented in a header). |
|
172 // ----------------------------------------------------------------------------- |
|
173 // |
|
174 EXPORT_C CHttpDownload* |
|
175 CHttpClientAppInstance::AttachDownloadL( TInt32 aDownloadId ) |
|
176 { |
|
177 // check if the download is attached already by other app. |
|
178 TBool isAttached = EFalse; |
|
179 isAttached = iClientApp->Engine()->IsAttachedAlready( aDownloadId ); |
|
180 if (isAttached) |
|
181 { |
|
182 User::Leave(KErrInUse); |
|
183 } |
|
184 |
|
185 CHttpDownload* download = iClientApp->Engine()->FindDownload( aDownloadId ); |
|
186 if( download) |
|
187 { |
|
188 download->Attach( this ); |
|
189 iClientApp->RegisterDownloadL(download); |
|
190 } |
|
191 |
|
192 |
|
193 return download; |
|
194 } |
|
195 |
|
196 // ----------------------------------------------------------------------------- |
|
197 // CHttpClientAppInstance::DownloadsL |
|
198 // ?implementation_description |
|
199 // (other items were commented in a header). |
|
200 // ----------------------------------------------------------------------------- |
|
201 // |
|
202 EXPORT_C CArrayPtrFlat<CHttpDownload>* |
|
203 CHttpClientAppInstance::DownloadsL() const |
|
204 { |
|
205 CArrayPtrFlat<CHttpDownload>* downloads = NULL; |
|
206 |
|
207 downloads = new (ELeave) CArrayPtrFlat<CHttpDownload>(2); |
|
208 CArrayPtrFlat<CHttpDownload>* allDownloads = iClientApp->Downloads(); |
|
209 |
|
210 CleanupStack::PushL( downloads ); |
|
211 for( TInt i = 0; i < allDownloads->Count(); ++i ) |
|
212 { |
|
213 if( (*allDownloads)[i]->ClientAppInstance() == this ) |
|
214 { |
|
215 downloads->AppendL( (*allDownloads)[i] ); |
|
216 } |
|
217 } |
|
218 CleanupStack::Pop( downloads ); |
|
219 |
|
220 return downloads; |
|
221 } |
|
222 |
|
223 // ----------------------------------------------------------------------------- |
|
224 // CHttpClientAppInstance::AppUid |
|
225 // ?implementation_description |
|
226 // (other items were commented in a header). |
|
227 // ----------------------------------------------------------------------------- |
|
228 // |
|
229 EXPORT_C TUint32 CHttpClientAppInstance::AppUid() const |
|
230 { |
|
231 return iClientApp->AppUid(); |
|
232 } |
|
233 |
|
234 // ----------------------------------------------------------------------------- |
|
235 // CHttpClientAppInstance::GetIntAttributeL |
|
236 // ?implementation_description |
|
237 // (other items were commented in a header). |
|
238 // ----------------------------------------------------------------------------- |
|
239 // |
|
240 EXPORT_C void CHttpClientAppInstance::GetIntAttributeL( |
|
241 THttpDownloadMgrAttrib aAttribute, |
|
242 TInt32& aValue ) |
|
243 { |
|
244 TInt err( KErrNone ); |
|
245 |
|
246 switch( aAttribute ) |
|
247 { |
|
248 case EDlMgrAppUid: |
|
249 { |
|
250 aValue = iClientApp->AppUid(); |
|
251 } |
|
252 break; |
|
253 |
|
254 case EDlMgrIap: |
|
255 { |
|
256 aValue = iConnHandler->IapId(); |
|
257 } |
|
258 break; |
|
259 |
|
260 case EDlMgrExitAction: |
|
261 { |
|
262 aValue = iExitAction; |
|
263 } |
|
264 break; |
|
265 |
|
266 case EDlMgrAllDlsInMaster: |
|
267 { |
|
268 aValue = iClientApp->DownloadsInMaster( EFalse ); |
|
269 } |
|
270 break; |
|
271 |
|
272 case EDlMgrNoMediaDlsInMaster: |
|
273 { |
|
274 aValue = iClientApp->DownloadsInMaster( ETrue ); |
|
275 } |
|
276 break; |
|
277 |
|
278 case EDlMgrNumInprogressDownloads: |
|
279 { |
|
280 CArrayPtrFlat<CHttpDownload>* downloads = iClientApp->Downloads(); |
|
281 aValue = 0; |
|
282 |
|
283 for( TInt i = 0; i < downloads->Count(); ++i ) |
|
284 { |
|
285 if( (*downloads)[i]->State() == EHttpDlInprogress && |
|
286 (*downloads)[i]->ClientAppInstance() == this ) |
|
287 { |
|
288 ++aValue; |
|
289 } |
|
290 } |
|
291 } |
|
292 break; |
|
293 |
|
294 case EDlMgrNoMediaDls: |
|
295 { |
|
296 CArrayPtrFlat<CHttpDownload>* downloads = iClientApp->Downloads(); |
|
297 aValue = 0; |
|
298 |
|
299 for( TInt i = 0; i < downloads->Count(); ++i ) |
|
300 { |
|
301 if( (*downloads)[i]->ClientAppInstance() == this ) |
|
302 { |
|
303 if( (*downloads)[i]->NoMedia() ) |
|
304 { |
|
305 ++aValue; |
|
306 } |
|
307 } |
|
308 } |
|
309 } |
|
310 break; |
|
311 |
|
312 default: |
|
313 #ifdef __WINS__ |
|
314 DMPanic( KErrArgument ); |
|
315 #else |
|
316 err = KErrArgument; |
|
317 #endif |
|
318 break; |
|
319 } |
|
320 |
|
321 User::LeaveIfError( err ); |
|
322 } |
|
323 |
|
324 // ----------------------------------------------------------------------------- |
|
325 // CHttpClientAppInstance::GetBoolAttributeL |
|
326 // ?implementation_description |
|
327 // (other items were commented in a header). |
|
328 // ----------------------------------------------------------------------------- |
|
329 // |
|
330 EXPORT_C void CHttpClientAppInstance::GetBoolAttributeL( |
|
331 THttpDownloadMgrAttrib aAttribute, |
|
332 TBool& aValue ) |
|
333 { |
|
334 TInt err( KErrNone ); |
|
335 |
|
336 switch( aAttribute ) |
|
337 { |
|
338 case EDlMgrSilentMode: |
|
339 { |
|
340 aValue = iSilentMode; |
|
341 } |
|
342 break; |
|
343 |
|
344 case EDlMgrMaster: |
|
345 { |
|
346 aValue = iMaster; |
|
347 } |
|
348 break; |
|
349 |
|
350 case EDlMgrConnected: |
|
351 { |
|
352 aValue = iConnHandler->IsConnected(); |
|
353 } |
|
354 break; |
|
355 |
|
356 case EDlMgrEnableCookies: |
|
357 { |
|
358 aValue = iCookies; |
|
359 } |
|
360 break; |
|
361 |
|
362 case EDlMgrAutoConnect: |
|
363 { |
|
364 aValue = iAutoConnect; |
|
365 } |
|
366 break; |
|
367 |
|
368 case EDlMgrFotaDownload: |
|
369 { |
|
370 aValue = iFotaDownload; |
|
371 } |
|
372 break; |
|
373 |
|
374 case EDlMgrProgressiveDownload: |
|
375 { |
|
376 aValue = iProgressiveDownload; |
|
377 } |
|
378 break; |
|
379 |
|
380 |
|
381 default: |
|
382 #ifdef __WINS__ |
|
383 DMPanic( KErrArgument ); |
|
384 #else |
|
385 err = KErrArgument; |
|
386 #endif |
|
387 break; |
|
388 } |
|
389 |
|
390 User::LeaveIfError( err ); |
|
391 } |
|
392 |
|
393 // ----------------------------------------------------------------------------- |
|
394 // CHttpClientAppInstance::GetStringAttributeL |
|
395 // ?implementation_description |
|
396 // (other items were commented in a header). |
|
397 // ----------------------------------------------------------------------------- |
|
398 // |
|
399 EXPORT_C HBufC* CHttpClientAppInstance::GetStringAttributeL( |
|
400 THttpDownloadMgrAttrib aAttribute, |
|
401 TBool& aDelete ) |
|
402 { |
|
403 aDelete = EFalse; |
|
404 |
|
405 switch( aAttribute ) |
|
406 { |
|
407 case EDlMgrConnectionName: |
|
408 { |
|
409 return iConnHandler->ConnectionNameL( aDelete ); |
|
410 } |
|
411 |
|
412 case EDlMgrAPName: |
|
413 { |
|
414 // iConnHandler->APNameL( aValue ); |
|
415 } |
|
416 break; |
|
417 |
|
418 case EDlMgrCodFolder: |
|
419 { |
|
420 HBufC* codFolder = HBufC::NewL( KMaxPath ); |
|
421 TPtr buffer( codFolder->Des() ); |
|
422 |
|
423 iClientApp->Engine()->CodFolder( iClientApp, buffer ); |
|
424 |
|
425 return codFolder; |
|
426 } |
|
427 |
|
428 default: |
|
429 { |
|
430 #ifdef __WINS__ |
|
431 DMPanic( KErrArgument ); |
|
432 #else |
|
433 User::Leave( KErrArgument ); |
|
434 #endif |
|
435 } |
|
436 } |
|
437 |
|
438 return NULL; |
|
439 } |
|
440 |
|
441 // ----------------------------------------------------------------------------- |
|
442 // CHttpClientAppInstance::GetString8AttributeL |
|
443 // ?implementation_description |
|
444 // (other items were commented in a header). |
|
445 // ----------------------------------------------------------------------------- |
|
446 // |
|
447 EXPORT_C HBufC8* CHttpClientAppInstance::GetString8AttributeL( |
|
448 THttpDownloadMgrAttrib /*aAttribute*/, |
|
449 TBool& aDelete ) |
|
450 { |
|
451 aDelete = EFalse; |
|
452 |
|
453 #ifdef __WINS__ |
|
454 DMPanic( KErrArgument ); |
|
455 #else |
|
456 User::LeaveIfError( KErrArgument ); |
|
457 #endif |
|
458 |
|
459 return NULL; |
|
460 } |
|
461 |
|
462 // ----------------------------------------------------------------------------- |
|
463 // CHttpClientAppInstance::SetIntAttributeL |
|
464 // ?implementation_description |
|
465 // (other items were commented in a header). |
|
466 // ----------------------------------------------------------------------------- |
|
467 // |
|
468 EXPORT_C void CHttpClientAppInstance::SetIntAttributeL( |
|
469 THttpDownloadMgrAttrib aAttribute, |
|
470 const TInt32 aValue ) |
|
471 { |
|
472 TInt err( KErrNone ); |
|
473 |
|
474 switch( aAttribute ) |
|
475 { |
|
476 case EDlMgrIap: |
|
477 { |
|
478 iConnHandler->SetIapId( (TUint32)aValue ); |
|
479 } |
|
480 break; |
|
481 |
|
482 case EDlMgrExitAction: |
|
483 { |
|
484 iExitAction = (THttpDownloadMgrExitAction)aValue; |
|
485 } |
|
486 break; |
|
487 |
|
488 default: |
|
489 #ifdef __WINS__ |
|
490 DMPanic( KErrArgument ); |
|
491 #else |
|
492 err = KErrArgument; |
|
493 #endif |
|
494 break; |
|
495 } |
|
496 |
|
497 User::LeaveIfError( err ); |
|
498 } |
|
499 |
|
500 // ----------------------------------------------------------------------------- |
|
501 // CHttpClientAppInstance::SetBoolAttributeL |
|
502 // ?implementation_description |
|
503 // (other items were commented in a header). |
|
504 // ----------------------------------------------------------------------------- |
|
505 // |
|
506 EXPORT_C void CHttpClientAppInstance::SetBoolAttributeL( |
|
507 THttpDownloadMgrAttrib aAttribute, |
|
508 const TBool aValue ) |
|
509 { |
|
510 TInt err( KErrNone ); |
|
511 |
|
512 switch( aAttribute ) |
|
513 { |
|
514 case EDlMgrSilentMode: |
|
515 { |
|
516 iSilentMode = aValue; |
|
517 } |
|
518 break; |
|
519 |
|
520 case EDlMgrEnableCookies: |
|
521 { |
|
522 iCookies = aValue; |
|
523 } |
|
524 break; |
|
525 |
|
526 case EDlMgrAutoConnect: |
|
527 { |
|
528 iAutoConnect = aValue; |
|
529 } |
|
530 break; |
|
531 |
|
532 case EDlMgrFotaDownload: |
|
533 { |
|
534 iFotaDownload = aValue; |
|
535 } |
|
536 break; |
|
537 |
|
538 default: |
|
539 #ifdef __WINS__ |
|
540 DMPanic( KErrArgument ); |
|
541 #else |
|
542 err = KErrArgument; |
|
543 #endif |
|
544 break; |
|
545 } |
|
546 |
|
547 User::LeaveIfError( err ); |
|
548 } |
|
549 |
|
550 // ----------------------------------------------------------------------------- |
|
551 // CHttpClientAppInstance::SetStringAttributeL |
|
552 // ?implementation_description |
|
553 // (other items were commented in a header). |
|
554 // ----------------------------------------------------------------------------- |
|
555 // |
|
556 EXPORT_C void CHttpClientAppInstance::SetStringAttributeL( |
|
557 THttpDownloadMgrAttrib aAttribute, |
|
558 const TDesC16& aValue ) |
|
559 { |
|
560 switch( aAttribute ) |
|
561 { |
|
562 case EDlMgrConnectionName: |
|
563 { |
|
564 iConnHandler->SetConnectionNameL( aValue ); |
|
565 } |
|
566 break; |
|
567 |
|
568 default: |
|
569 { |
|
570 #ifdef __WINS__ |
|
571 DMPanic( KErrArgument ); |
|
572 #else |
|
573 User::LeaveIfError( KErrArgument ); |
|
574 #endif |
|
575 } |
|
576 } |
|
577 } |
|
578 |
|
579 // ----------------------------------------------------------------------------- |
|
580 // CHttpClientAppInstance::SetStringAttributeL |
|
581 // ?implementation_description |
|
582 // (other items were commented in a header). |
|
583 // ----------------------------------------------------------------------------- |
|
584 // |
|
585 EXPORT_C void CHttpClientAppInstance::SetStringAttributeL( |
|
586 THttpDownloadMgrAttrib /*aAttribute*/, |
|
587 const TDesC8& /*aValue*/ ) |
|
588 { |
|
589 #ifdef __WINS__ |
|
590 DMPanic( KErrArgument ); |
|
591 #else |
|
592 User::LeaveIfError( KErrArgument ); |
|
593 #endif |
|
594 } |
|
595 |
|
596 // ----------------------------------------------------------------------------- |
|
597 // CHttpClientAppInstance::Disconnect |
|
598 // ?implementation_description |
|
599 // (other items were commented in a header). |
|
600 // ----------------------------------------------------------------------------- |
|
601 // |
|
602 EXPORT_C void CHttpClientAppInstance::Disconnect() |
|
603 { |
|
604 CArrayPtrFlat<CHttpDownload>* downloads = iClientApp->Downloads(); |
|
605 |
|
606 for( TInt i = 0; i < downloads->Count(); ++i ) |
|
607 { |
|
608 if( (*downloads)[i]->ClientAppInstance() == this ) |
|
609 { |
|
610 // this won't surely leave on this call |
|
611 TRAP_IGNORE( (*downloads)[i]->PauseL() ); |
|
612 } |
|
613 } |
|
614 |
|
615 iConnHandler->Disconnect( ETrue ); |
|
616 // to forget the RConnection's name |
|
617 TRAP_IGNORE( iConnHandler->SetConnectionNameL( KNullDesC ) ); |
|
618 } |
|
619 |
|
620 // ----------------------------------------------------------------------------- |
|
621 // CHttpClientAppInstance::ClientApp |
|
622 // ?implementation_description |
|
623 // (other items were commented in a header). |
|
624 // ----------------------------------------------------------------------------- |
|
625 // |
|
626 EXPORT_C CHttpClientApp* CHttpClientAppInstance::ClientApp() const |
|
627 { |
|
628 return iClientApp; |
|
629 } |
|
630 |
|
631 |
|
632 // ----------------------------------------------------------------------------- |
|
633 // CHttpClientAppInstance::InstanceId |
|
634 // ?implementation_description |
|
635 // (other items were commented in a header). |
|
636 // ----------------------------------------------------------------------------- |
|
637 // |
|
638 TInt CHttpClientAppInstance::InstanceId() const |
|
639 { |
|
640 return iInstanceId; |
|
641 } |
|
642 |
|
643 |
|
644 // ----------------------------------------------------------------------------- |
|
645 // CHttpClientAppInstance::ConnHandler |
|
646 // ?implementation_description |
|
647 // (other items were commented in a header). |
|
648 // ----------------------------------------------------------------------------- |
|
649 // |
|
650 CHttpConnHandler* CHttpClientAppInstance::ConnHandler() const |
|
651 { |
|
652 return iConnHandler; |
|
653 } |
|
654 |
|
655 // ----------------------------------------------------------------------------- |
|
656 // CHttpClientAppInstance::Observer |
|
657 // ?implementation_description |
|
658 // (other items were commented in a header). |
|
659 // ----------------------------------------------------------------------------- |
|
660 // |
|
661 MDownloadStateObserver* CHttpClientAppInstance::Observer() const |
|
662 { |
|
663 return iObserver; |
|
664 } |
|
665 |
|
666 // ----------------------------------------------------------------------------- |
|
667 // CHttpClientAppInstance::ExitAction |
|
668 // ?implementation_description |
|
669 // (other items were commented in a header). |
|
670 // ----------------------------------------------------------------------------- |
|
671 // |
|
672 THttpDownloadMgrExitAction CHttpClientAppInstance::ExitAction() const |
|
673 { |
|
674 return iExitAction; |
|
675 } |
|
676 |
|
677 // ----------------------------------------------------------------------------- |
|
678 // CHttpClientAppInstance::Master |
|
679 // ?implementation_description |
|
680 // (other items were commented in a header). |
|
681 // ----------------------------------------------------------------------------- |
|
682 // |
|
683 TBool CHttpClientAppInstance::Master() const |
|
684 { |
|
685 return iMaster; |
|
686 } |
|
687 |
|
688 // ----------------------------------------------------------------------------- |
|
689 // CHttpClientAppInstance::Cookies |
|
690 // ?implementation_description |
|
691 // (other items were commented in a header). |
|
692 // ----------------------------------------------------------------------------- |
|
693 // |
|
694 TBool CHttpClientAppInstance::Cookies() const |
|
695 { |
|
696 return iCookies; |
|
697 } |
|
698 |
|
699 // ----------------------------------------------------------------------------- |
|
700 // CHttpClientAppInstance::AutoConnect |
|
701 // ?implementation_description |
|
702 // (other items were commented in a header). |
|
703 // ----------------------------------------------------------------------------- |
|
704 // |
|
705 TBool CHttpClientAppInstance::AutoConnect() const |
|
706 { |
|
707 return iAutoConnect; |
|
708 } |
|
709 |
|
710 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
711 |
|
712 // End of File |