calendarwidgetplugin/inc/datetimeobserver.h
changeset 0 db1bf15cefff
equal deleted inserted replaced
-1:000000000000 0:db1bf15cefff
       
     1 /*
       
     2 * Copyright (c) 2010 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: Calendar widget datetime observer
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef DATETIMEOBSERVER_H
       
    19 #define DATETIMEOBSERVER_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 /*!
       
    24   \class DateTimeObserver
       
    25   \brief Gets notifications about date changes from the Symbian fw and 
       
    26   forwards those to the widget.
       
    27 */
       
    28 
       
    29 class DateTimeObserverPrivate;
       
    30 
       
    31 class DateTimeObserver : public QObject
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35 public:
       
    36     /*! 
       
    37         \fn DateTimeObserver::DateTimeObserver(QObject *parent = 0)
       
    38         
       
    39         Constructor of the DateTimeObserver class.
       
    40         @param parent is the parent class.
       
    41      */
       
    42     explicit DateTimeObserver(QObject *parent = 0);
       
    43     /*! 
       
    44         \fn DateTimeObserver::~DateTimeObserver()
       
    45         
       
    46         Destructor of the DateTimeObserver class.
       
    47      */
       
    48     virtual ~DateTimeObserver();
       
    49 
       
    50 signals:
       
    51      /*! 
       
    52         \fn void DateTimeObserver::completed()
       
    53         
       
    54         emitted when a new notification is received from the private part.
       
    55      */
       
    56     void completed();
       
    57 
       
    58 protected:
       
    59     /*! 
       
    60         \fn void DateTimeObserver::handleCompletion()
       
    61         
       
    62         called by the private part of DateTimeObserver when the date has changed.
       
    63      */
       
    64     void handleCompletion();
       
    65 
       
    66 private:
       
    67     Q_DISABLE_COPY(DateTimeObserver)
       
    68     friend class DateTimeObserverPrivate;
       
    69 
       
    70     DateTimeObserverPrivate *d_ptr;
       
    71 };
       
    72 
       
    73 #endif // DATETIMEOBSERVER_H