contentstorage/caclient/inc/canotifier_p.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 May 2010 13:11:12 +0300
changeset 80 397d00875918
parent 73 4bc7b118b3df
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
 * Copyright (c) 2009 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: canotifier_p.h
 *
 */

#ifndef CANOTIFIER_PRIVATE_H
#define CANOTIFIER_PRIVATE_H

#include <QSharedPointer>

class CaClientNotifierProxy;
class CaNotifier;
class CaNotifierFilter;
class CaObserver;
class CaService;

class CaNotifierPrivate
{
public:

    enum NotifierType {
        EntryChangedWithIdNotifierType = 0,
        EntryChangedWithEntryNotifierType,
        EntryTouchedNotifierType,
        GroupContentChangedNotifierType
    };

    CaNotifierPrivate(const CaNotifierFilter &notifierFilter, 
            CaClientNotifierProxy *notifierProxy);
    ~CaNotifierPrivate();

    int registerNotifier(NotifierType notifierType);
    void unregisterNotifier(NotifierType notifierType);

    void makeConnect();

private:

    const CaNotifier *m_q;

    const CaNotifierFilter *mNotifierFilter;

    const CaObserver *mObserver;

    CaClientNotifierProxy *mNotifierProxy;

    QSharedPointer<CaService> mCaService;

    friend class CaNotifier;

};

#endif // CANOTIFIER_PRIVATE_H