javamanager/javasettings/appmngrplugin/javapackagelookup/inc/jcfjadjarmatcherobservable.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Observable interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef JCFJADJARMATCHEROBSERVABLE_H
       
    20 #define JCFJADJARMATCHEROBSERVABLE_H
       
    21 
       
    22 #include <e32def.h>
       
    23 #include "jcfjadjarmatcherobserver.h"
       
    24 
       
    25 /**
       
    26 * Public interface for observer registration.
       
    27 *  Obserevers can be registered through this API
       
    28 *
       
    29 *  @lib JcfJadJarMatcher.lib
       
    30 *  @since S60 2.0
       
    31 */
       
    32 class MJcfJadJarMatcherObservable
       
    33 {
       
    34 public:
       
    35     /**
       
    36      * To add an observer for this object.
       
    37      *
       
    38      * Preconditions. The following conditions must be true prior to calling
       
    39      * this method; otherwise, its operation is undefined.
       
    40      * - None.
       
    41      *
       
    42      * Postconditions. The following condition is true immediately after
       
    43      * returning from this method.
       
    44      * - None.
       
    45      *
       
    46      * @param aObs - an observer to be added.
       
    47      */
       
    48     void AddObserver(MJcfJadJarMatcherObserver* aObs);
       
    49 
       
    50     /**
       
    51      * To notify observer of this object.
       
    52      *
       
    53      * Preconditions. The following conditions must be true prior to calling
       
    54      * this method; otherwise, its operation is undefined.
       
    55      * - None.
       
    56      *
       
    57      * Postconditions. The following condition is true immediately after
       
    58      * returning from this method.
       
    59      * - None.
       
    60      *
       
    61      * @param aStatus - a generic argument.
       
    62      */
       
    63     void NotifyObserver(TInt aStatus);
       
    64 
       
    65 private:
       
    66     /**
       
    67      * The observer.
       
    68      */
       
    69     MJcfJadJarMatcherObserver* iObs;
       
    70 };
       
    71 
       
    72 #endif // JCFJADJARMATCHEROBSERVABLE_H