equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 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: Client Observer for receiving events from TNE server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "HXTneClientObserver.h" |
|
21 |
|
22 |
|
23 |
|
24 CTNEClientObserver::CTNEClientObserver(CHXTNEVideoClipInfoImp *aImp): |
|
25 CActive(EPriorityStandard) |
|
26 ,iImp(aImp) |
|
27 { |
|
28 CActiveScheduler::Add(this); |
|
29 } |
|
30 |
|
31 CTNEClientObserver::~CTNEClientObserver() |
|
32 { |
|
33 if(IsActive()) |
|
34 Cancel(); |
|
35 } |
|
36 |
|
37 CTNEClientObserver* CTNEClientObserver::NewL(CHXTNEVideoClipInfoImp *aImp) |
|
38 { |
|
39 CTNEClientObserver* self = new (ELeave) CTNEClientObserver(aImp); |
|
40 return self; |
|
41 } |
|
42 |
|
43 void CTNEClientObserver::RunL() |
|
44 { |
|
45 iImp->ServiceCompleted(iStatus.Int()); |
|
46 } |
|
47 |
|
48 void CTNEClientObserver::DoCancel() |
|
49 { |
|
50 |
|
51 } |
|
52 |
|
53 void CTNEClientObserver::Activate() |
|
54 { |
|
55 if (!IsActive()) |
|
56 { |
|
57 SetActive(); |
|
58 } |
|
59 } |