convergedcallengine/csplugin/inc/cspuuimessagesender.h
branchRCL_3
changeset 19 7d48bed6ce0c
parent 18 594d59766373
child 20 987c9837762f
equal deleted inserted replaced
18:594d59766373 19:7d48bed6ce0c
     1 /*
       
     2 * Copyright (c) 2007 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:  Sends UUI message.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSPUUIMESSAGESENDER_H
       
    20 #define CSPUUIMESSAGESENDER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <etelmm.h>
       
    24 
       
    25 /**
       
    26  *  Sends user to user information messages.
       
    27  *
       
    28  *  @lib PhoneEngine.lib
       
    29  *  @since S60 v3.2
       
    30  */
       
    31 NONSHARABLE_CLASS( CSPUUIMessageSender ) : public CActive
       
    32     {
       
    33 
       
    34 public:
       
    35 
       
    36     static CSPUUIMessageSender* NewL(
       
    37         RMobileCall& aCall );
       
    38 
       
    39     virtual ~CSPUUIMessageSender();
       
    40 
       
    41     /**
       
    42      * Sends user to user information.
       
    43      *
       
    44      * @since S60 v3.2
       
    45      * @param aMessage UUI message to be sent.
       
    46      */
       
    47     void SendUUIMessage( const TDesC& aMessage );
       
    48      
       
    49 // from base class CActive
       
    50 
       
    51 protected:
       
    52 
       
    53     /**
       
    54      * From CActive.
       
    55      *
       
    56      * Cancels active request.
       
    57      * @since S60 v3.2
       
    58      */
       
    59     void DoCancel();
       
    60     
       
    61     /**
       
    62      * From CActive.
       
    63      *
       
    64      * Callback to indicate completion
       
    65      * of request.
       
    66      * @since S60 v3.2
       
    67      */
       
    68     void RunL();
       
    69 
       
    70 private:
       
    71 
       
    72     CSPUUIMessageSender(
       
    73         RMobileCall& aCall );
       
    74 
       
    75     void ConstructL();
       
    76 
       
    77 private: // data
       
    78     
       
    79     /**
       
    80      * Call, which the UUI is sent to.
       
    81      * Not own.
       
    82      */
       
    83     RMobileCall& iCall;
       
    84     
       
    85     /**
       
    86      * Request.
       
    87      */
       
    88     RMobileCall::TMobileCallUUSRequestV1 iUUSRequest;
       
    89     
       
    90     /**
       
    91      * Request package.
       
    92      */
       
    93     RMobileCall::TMobileCallUUSRequestV1Pckg iUUSRequestPckg;
       
    94     };
       
    95 
       
    96 #endif // CSPUUIMESSAGESENDER_H