calendarui/server/CalenShared/Inc/CalServerSignaller.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:   This class handles signals related to asynchrnous functionalities for calendar server
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CALSVRSIGNALLER_H
       
    21 #define CALSVRSIGNALLER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <e32std.h>
       
    26 
       
    27 
       
    28 // CLASS DECLARATION
       
    29 NONSHARABLE_CLASS( TCalServerStart )
       
    30     {
       
    31 public:
       
    32     inline TCalServerStart(TRequestStatus& aStatus);
       
    33     inline TPtrC AsCommand() const;
       
    34 
       
    35 private:
       
    36     inline TCalServerStart(){};
       
    37 
       
    38 private:
       
    39     TThreadId iId;
       
    40     TRequestStatus* iStatus;
       
    41 
       
    42     };
       
    43 
       
    44 inline TCalServerStart::TCalServerStart(TRequestStatus& aStatus)
       
    45     : iId( RThread().Id() ),
       
    46       iStatus( &aStatus )
       
    47     {
       
    48         aStatus = KRequestPending;
       
    49     }
       
    50 
       
    51 inline TPtrC TCalServerStart::AsCommand() const
       
    52     {
       
    53     return TPtrC( reinterpret_cast<const TText*>( this ), sizeof( TCalServerStart )/sizeof( TText ) );
       
    54     }
       
    55 
       
    56 #endif // CALSVRSIGNALLER_H
       
    57 
       
    58 
       
    59 // End of File