contentstorage/caclient/inc/canotifier_p.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 08:32:18 +0300
changeset 121 0b3699f6c654
parent 80 397d00875918
permissions -rw-r--r--
Revision: 201036 Kit: 201037

/*
 * 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