56
|
1 |
/*
|
87
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
56
|
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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
package com.nokia.microedition.m2g;
|
|
19 |
|
|
20 |
|
|
21 |
/**
|
|
22 |
* Interface
|
|
23 |
*/
|
|
24 |
public interface M2GDestroyable
|
|
25 |
{
|
|
26 |
/**
|
|
27 |
* Finalization
|
|
28 |
*/
|
|
29 |
void doDestroy();
|
|
30 |
}
|
|
31 |
|
|
32 |
//--------------------------------------------------
|
|
33 |
// OTHER CLASSES
|
|
34 |
//--------------------------------------------------
|
|
35 |
/**
|
|
36 |
* M2GDestroyer implements the ToolkitObserver interface.
|
|
37 |
*/
|
|
38 |
class M2GDestroyer
|
|
39 |
{
|
|
40 |
private M2GDestroyable iDestroyable;
|
|
41 |
|
|
42 |
/**
|
|
43 |
* Ctor
|
|
44 |
* @param aDestroyable Destroy target
|
|
45 |
*/
|
|
46 |
M2GDestroyer(M2GDestroyable aDestroyable)
|
|
47 |
{
|
|
48 |
if (aDestroyable != null)
|
|
49 |
{
|
|
50 |
iDestroyable = aDestroyable;
|
|
51 |
}
|
|
52 |
}
|
|
53 |
}
|
|
54 |
|
|
55 |
|