uifw/AknGlobalUI/AknDynamicSoftNote/inc/AknDynamicNotifier.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2008 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:  RNotifier handler for dynamic soft notifications.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef AKNDYNAMICNOTIFIER_H
       
    19 #define AKNDYNAMICNOTIFIER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 
       
    26 // CLASS DECLARATION
       
    27 class RDynNotifier : public RNotifier
       
    28     {
       
    29 public:
       
    30     TInt Connect();
       
    31     };
       
    32 
       
    33 /**
       
    34 *  Base class for handling RNotifier.
       
    35 *
       
    36 *  @since S60 3.2
       
    37 */
       
    38 NONSHARABLE_CLASS( CAknDynamicNotifier ) : public CBase
       
    39     {
       
    40 public:
       
    41     /**
       
    42      * Destructor.
       
    43      */
       
    44     ~CAknDynamicNotifier();
       
    45 
       
    46     /**
       
    47      * C++ constructor.
       
    48      * @param aUid The UID identifying the plug-in notifier.
       
    49      */
       
    50     CAknDynamicNotifier( TUid aUid );
       
    51 
       
    52 public: // New methods
       
    53     
       
    54     /**
       
    55      * Starts or updates the notifier. Synchronous request.
       
    56      * @param aBuffer Data that can be passed to notifier.
       
    57      * @param aResponse Data that can be returned by notifier.
       
    58      * @return Generic symbian errorcode.
       
    59      */
       
    60     TInt StartOrUpdate(
       
    61         const TDesC8& aBuffer, 
       
    62         TDes8& aResponse );
       
    63 
       
    64     /**
       
    65      * Starts the notifier. Asynchronous request.
       
    66      * @param aStatus The request status.
       
    67      * @param aBuffer Data that can be passed to the notifier.
       
    68      * @param aResponse Data that can be returned by the notifier.
       
    69      * @return Generic symbian errorcode.
       
    70      */
       
    71     TInt StartOrUpdate(
       
    72         TRequestStatus& aStatus,
       
    73         const TDesC8& aBuffer,
       
    74         TDes8& aResponse);
       
    75 
       
    76 private: // Data
       
    77     /// Uid of the accessed notifier.
       
    78     TUid iUid;
       
    79     /// Flag whether the notifier is already started.
       
    80     TBool iStarted;
       
    81     /// Own. Handle to notifier server. 
       
    82     RDynNotifier iNotify;
       
    83     };
       
    84 
       
    85 #endif // AKNDYNAMICNOTIFIER_H