javamanager/javasettings/appmngrplugin/javapackagelookup/inc/jcfjadjarmatcherobservable.h
author Fionntina Carville <fionntinac@symbian.org>
Thu, 28 Oct 2010 16:07:36 +0100
branchRCL_3
changeset 86 be12440571b9
parent 19 04becd199f91
permissions -rw-r--r--
Reapply changes for bug 2896 and tweak for generatej9zips.py

/*
* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Observable interface
*
*/


#ifndef JCFJADJARMATCHEROBSERVABLE_H
#define JCFJADJARMATCHEROBSERVABLE_H

#include <e32def.h>
#include "jcfjadjarmatcherobserver.h"

/**
* Public interface for observer registration.
*  Obserevers can be registered through this API
*
*  @lib JcfJadJarMatcher.lib
*  @since S60 2.0
*/
class MJcfJadJarMatcherObservable
{
public:
    /**
     * To add an observer for this object.
     *
     * Preconditions. The following conditions must be true prior to calling
     * this method; otherwise, its operation is undefined.
     * - None.
     *
     * Postconditions. The following condition is true immediately after
     * returning from this method.
     * - None.
     *
     * @param aObs - an observer to be added.
     */
    void AddObserver(MJcfJadJarMatcherObserver* aObs);

    /**
     * To notify observer of this object.
     *
     * Preconditions. The following conditions must be true prior to calling
     * this method; otherwise, its operation is undefined.
     * - None.
     *
     * Postconditions. The following condition is true immediately after
     * returning from this method.
     * - None.
     *
     * @param aStatus - a generic argument.
     */
    void NotifyObserver(TInt aStatus);

private:
    /**
     * The observer.
     */
    MJcfJadJarMatcherObserver* iObs;
};

#endif // JCFJADJARMATCHEROBSERVABLE_H