homescreenapp/serviceproviders/hsmenuserviceprovider/tsrc/t_hsmenuserviceprovider/inc/canotifier.h
changeset 96 458d8c8d9580
equal deleted inserted replaced
92:6727c5d0afc7 96:458d8c8d9580
       
     1 /*
       
     2  * Copyright (c) 2009 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: canotifier.h
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CANOTIFIER_H
       
    19 #define CANOTIFIER_H
       
    20 
       
    21 #include <QObject>
       
    22 #include "cadefs.h"
       
    23 #include "caentry.h"
       
    24 
       
    25 class CaNotifier: public QObject
       
    26 {
       
    27 Q_OBJECT
       
    28 
       
    29 public:
       
    30 
       
    31     explicit CaNotifier() {};
       
    32 
       
    33     virtual ~CaNotifier() {};
       
    34 
       
    35     void issueEntryChanged(int entryId, ChangeType changeType)
       
    36     {
       
    37         emit entryChanged(entryId, changeType);
       
    38     }
       
    39 signals:
       
    40 
       
    41     /*!
       
    42         A signal emited when the entry is changed.
       
    43         \param entryId entry id.
       
    44         \param changeType the type of the change.
       
    45     */
       
    46     void entryChanged(int entryId, ChangeType changeType);
       
    47 
       
    48     /*!
       
    49         A signal emited when the entry is changed.
       
    50         \param entry changed entry.
       
    51         \param changeType the type of the change.
       
    52     */
       
    53     void entryChanged(const CaEntry &entry, ChangeType changeType);
       
    54 
       
    55     /*!
       
    56         A signal emited when the entry is touched.
       
    57         \param id entry id.
       
    58     */
       
    59     void entryTouched(int id);
       
    60 
       
    61     /*!
       
    62         A signal emited when group content is changed.
       
    63         \param groupId group id.
       
    64     */
       
    65     void groupContentChanged(int groupId);
       
    66 
       
    67 protected:
       
    68 
       
    69     virtual void connectNotify(const char * signal) { Q_UNUSED(signal); }
       
    70 
       
    71     virtual void disconnectNotify(const char * signal) { Q_UNUSED(signal); }
       
    72 
       
    73 };
       
    74 
       
    75 
       
    76 #endif // CANOTIFIER_H