javauis/m2g_qt/javasrc/com/nokia/microedition/m2g/M2GDestroyable.java
changeset 80 d6dafc5d983f
parent 56 abc41079b313
child 87 1627c337e51e
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
       
     1 /*
       
     2 * Copyright (c) 2005 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:
       
    15 *
       
    16 */
       
    17 
       
    18 package com.nokia.microedition.m2g;
       
    19 
       
    20 //import com.nokia.mj.impl.rt.legacy.ToolkitInvoker;
       
    21 //import com.nokia.mj.impl.rt.legacy.ToolkitObserver;
       
    22 
       
    23 /**
       
    24  * Interface
       
    25  */
       
    26 public interface M2GDestroyable
       
    27 {
       
    28     /**
       
    29      * Finalization
       
    30      */
       
    31     void doDestroy();
       
    32 }
       
    33 
       
    34 //--------------------------------------------------
       
    35 // OTHER CLASSES
       
    36 //--------------------------------------------------
       
    37 /**
       
    38  * M2GDestroyer implements the ToolkitObserver interface.
       
    39  */
       
    40 class M2GDestroyer
       
    41 {
       
    42     private M2GDestroyable iDestroyable;
       
    43 
       
    44     /**
       
    45      * Ctor
       
    46      * @param aDestroyable Destroy target
       
    47      */
       
    48     M2GDestroyer(M2GDestroyable aDestroyable)
       
    49     {
       
    50         if (aDestroyable != null)
       
    51         {
       
    52             iDestroyable = aDestroyable;
       
    53         }
       
    54     }
       
    55 }
       
    56 
       
    57