messagingappbase/msgavkon/msgnotifiers/inc/MsgConfirmSendQuery.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  
       
    15 *    CMsgConfirmSendQuery declaration file 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __MSGCONFIRMSENDQUERY_H
       
    22 #define __MSGCONFIRMSENDQUERY_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CMsgConfirmSendNotifier;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 * CMsgConfirmSendQuery
       
    34 *
       
    35 * @lib MsgNotifiers.dll
       
    36 * @since 2.0
       
    37 */
       
    38 NONSHARABLE_CLASS( CMsgConfirmSendQuery ) : public CActive
       
    39     {
       
    40     public:     // construct / destruct
       
    41 
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         *
       
    45         * @param aWatcher A reference pointer to CMsgConfirmSendWatcher
       
    46         */
       
    47         static CMsgConfirmSendQuery* NewL( CMsgConfirmSendNotifier& aNotifier );
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~CMsgConfirmSendQuery();
       
    53 
       
    54         /**
       
    55         * Shows the global msg query
       
    56         *
       
    57         * @param aPrompt
       
    58         */
       
    59         void ShowQueryL( const TDesC8& aBuffer, TBool aSendAs );
       
    60 
       
    61     private:
       
    62     
       
    63         /**
       
    64         * By default Symbian OS constructor is private.
       
    65         */
       
    66         void ConstructL();
       
    67 
       
    68         /**
       
    69         * Constructor.
       
    70         *
       
    71         * @param aWatcher A reference pointer to CMsgConfirmSendNotifier
       
    72         */
       
    73         CMsgConfirmSendQuery( CMsgConfirmSendNotifier& aNotifier );
       
    74 
       
    75         /**
       
    76         * From CActive
       
    77         */
       
    78         void RunL() ;
       
    79 
       
    80         /**
       
    81         * From CActive
       
    82         */
       
    83         void DoCancel();
       
    84         
       
    85     private:
       
    86     
       
    87         void ResolveSendAsConfirmDetailsL( const TDesC8& aBuffer );
       
    88         void ResolveSendUiConfirmDetailsL( const TDesC8& aBuffer );
       
    89         void NameFromSecurityInfoL( TSecurityInfo& securityInfo );
       
    90         void NameFromMtmL( CMsvSession* aSession, TUid aMtmTypeUid );
       
    91         HBufC* CreateMessageTextLC();
       
    92 
       
    93     private:    // data
       
    94 
       
    95         CMsgConfirmSendNotifier& iNotifier;
       
    96 
       
    97     	CEikonEnv*      iCoe;
       
    98     	TInt            iResourceFileOffset;
       
    99     	
       
   100     	TSecurityInfo iSecurityInfo;
       
   101     	CMsvEntrySelection* iSelection;
       
   102         
       
   103         TBool iMultipleMessages;
       
   104         TBool iMultipleRecipients;
       
   105         HBufC* iAppName;
       
   106         HBufC* iMtmName;
       
   107         
       
   108     };
       
   109 
       
   110 #endif // __MSGCONFIRMSENDQUERY_H
       
   111 
       
   112 // End of File