equal
deleted
inserted
replaced
36 // |
36 // |
37 // ---------------------------------------------------- |
37 // ---------------------------------------------------- |
38 // |
38 // |
39 EXPORT_C CGSBaseDocument::CGSBaseDocument( CEikApplication& aApp ) |
39 EXPORT_C CGSBaseDocument::CGSBaseDocument( CEikApplication& aApp ) |
40 : CAknDocument( aApp ), |
40 : CAknDocument( aApp ), |
41 iUnloadWrapperObjects( KGSPluginWrapperObjectGranularity ) |
41 iUnloadWrapperObjects( KGSPluginWrapperObjectGranularity ), |
|
42 iWatchDog ( NULL ) |
42 { |
43 { |
43 } |
44 } |
44 |
45 |
45 |
46 |
46 // ---------------------------------------------------- |
47 // ---------------------------------------------------- |
63 delete object; |
64 delete object; |
64 } |
65 } |
65 |
66 |
66 iUnloadWrapperObjects.Close(); |
67 iUnloadWrapperObjects.Close(); |
67 delete iPluginViewIdCache; |
68 delete iPluginViewIdCache; |
|
69 #ifdef GS_ENABLE_WATCH_DOG |
68 delete iWatchDog; |
70 delete iWatchDog; |
|
71 #endif |
69 |
72 |
70 iImplInfoArray.ResetAndDestroy();// This is needed |
73 iImplInfoArray.ResetAndDestroy();// This is needed |
71 iImplInfoArray.Close(); |
74 iImplInfoArray.Close(); |
72 } |
75 } |
73 |
76 |
78 // |
81 // |
79 // ---------------------------------------------------- |
82 // ---------------------------------------------------- |
80 // |
83 // |
81 EXPORT_C void CGSBaseDocument::ConstructL() |
84 EXPORT_C void CGSBaseDocument::ConstructL() |
82 { |
85 { |
|
86 #ifdef GS_ENABLE_WATCH_DOG |
83 iWatchDog = CGSWatchDog::NewL(); |
87 iWatchDog = CGSWatchDog::NewL(); |
|
88 #endif |
84 |
89 |
85 REComSession::ListImplementationsL( |
90 REComSession::ListImplementationsL( |
86 KGSPluginInterfaceUid, |
91 KGSPluginInterfaceUid, |
87 iImplInfoArray ); |
92 iImplInfoArray ); |
88 #ifdef _DEBUG |
93 #ifdef _DEBUG |