equal
deleted
inserted
replaced
30 // ----------------------------------------------------------------------------- |
30 // ----------------------------------------------------------------------------- |
31 // |
31 // |
32 CLandmarkDummyAO::CLandmarkDummyAO(MLandmarkObserver* aObserver, |
32 CLandmarkDummyAO::CLandmarkDummyAO(MLandmarkObserver* aObserver, |
33 CLandmarkManageObjects* aManageObjects) : |
33 CLandmarkManageObjects* aManageObjects) : |
34 CActive(EPriorityNormal), iObserver(aObserver), iManageObjects( |
34 CActive(EPriorityNormal), iObserver(aObserver), iManageObjects( |
35 aManageObjects) |
35 aManageObjects),iIsDelay(EFalse) |
36 { |
36 { |
37 CActiveScheduler::Add(this); |
37 CActiveScheduler::Add(this); |
38 } |
38 } |
39 |
39 |
40 CLandmarkDummyAO::~CLandmarkDummyAO() |
40 CLandmarkDummyAO::~CLandmarkDummyAO() |
54 iCmd = aCmd; |
54 iCmd = aCmd; |
55 iId = aId; |
55 iId = aId; |
56 SetActive(); |
56 SetActive(); |
57 TRequestStatus* status = &iStatus; |
57 TRequestStatus* status = &iStatus; |
58 User::RequestComplete(status, aError); |
58 User::RequestComplete(status, aError); |
|
59 iIsDelay = ETrue; |
59 } |
60 } |
60 |
61 |
|
62 void CLandmarkDummyAO::Delay(TInt aError) |
|
63 { |
|
64 SetActive(); |
|
65 TRequestStatus* status = &iStatus; |
|
66 User::RequestComplete(status, aError); |
|
67 iIsDelay = EFalse; |
|
68 } |
61 void CLandmarkDummyAO::RunL() |
69 void CLandmarkDummyAO::RunL() |
62 { |
70 { |
63 switch(iCmd) |
71 /*if( iIsDelay ) |
64 { |
72 { |
65 case EAdd: TRAP_IGNORE(iObserver->HandleAddItemsL(iId,iTransactionId,iStatus.Int())); |
73 Delay(iStatus.Int()); |
66 break; |
74 } |
67 case EUpdate: |
75 else*/ |
68 case ERemove: TRAP_IGNORE(iObserver->HandleItemsL(iTransactionId,iStatus.Int())); |
76 //{ |
69 break; |
77 switch(iCmd) |
70 default: |
78 { |
71 break; |
79 case EAdd: TRAP_IGNORE(iObserver->HandleAddItemsL(iId,iTransactionId,iStatus.Int())); |
72 } |
80 break; |
73 |
81 case EUpdate: |
74 if (!iManageObjects->IsActive()) |
82 case ERemove: TRAP_IGNORE(iObserver->HandleItemsL(iTransactionId,iStatus.Int())); |
75 { |
83 break; |
76 iManageObjects->Start(); |
84 default: |
77 } |
85 break; |
|
86 } |
|
87 |
|
88 if (!iManageObjects->IsActive()) |
|
89 { |
|
90 iManageObjects->Start(); |
|
91 } |
|
92 // } |
78 } |
93 } |
79 |
94 |