omacp/omacpadapters/EmailAdapter/Inc/CWPEmailSaveSmtpPopItem.h
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     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:  Save SMTP-POP settings
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CSAVESMTPPOPITEM_H
       
    21 #define CSAVESMTPPOPITEM_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "CWPEmailSaveItem.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CWPEmailItem;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  CSaveSmtpPopItem class.
       
    33 *
       
    34 *  @lib WPEmailAdapter.lib
       
    35 *  @since 2.0
       
    36 */
       
    37 class CSaveSmtpPopItem : public CWPEmailSaveItem
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40 
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         * @param aSmtpItem SMTP setting item, Panic if NULL
       
    44         * @param aPopItem POP setting item, Panic if NULL
       
    45         * @return self
       
    46         */
       
    47         static CSaveSmtpPopItem* NewLC(CWPEmailItem* aSmtpItem, 
       
    48             CWPEmailItem* aPopItem);
       
    49               
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         ~CSaveSmtpPopItem();
       
    54 
       
    55     public: // from CWPEmailSaveItem
       
    56         
       
    57         void SaveL(CMsvSession* aSession);
       
    58         const TDesC& SummaryText();
       
    59         TBool ValidateL();
       
    60            
       
    61     private: // New functions
       
    62 
       
    63         /**
       
    64         * By default Symbian 2nd phase constructor is private.
       
    65         */
       
    66         void ConstructL();
       
    67         
       
    68         /**
       
    69         * constructor.
       
    70         * @param see NewLC
       
    71         */
       
    72         CSaveSmtpPopItem(CWPEmailItem* aSmtpItem, 
       
    73             CWPEmailItem* aPopItem);
       
    74 
       
    75         /**
       
    76         * Validate SMTP item data
       
    77         * @return ETrue if valid.
       
    78         */
       
    79         TBool ValidateSmtpItemL();
       
    80         /**
       
    81         * Validate Pop data
       
    82         * @return ETrue if valid
       
    83         */
       
    84         TBool ValidatePopItemL();
       
    85 
       
    86 
       
    87     private:    // Data
       
    88 
       
    89         /**
       
    90         * Ref. to SMTP item data.
       
    91         */
       
    92         CWPEmailItem* iSmtpItem;
       
    93 
       
    94         /**
       
    95         * Ref. to POP item data.
       
    96         */
       
    97         CWPEmailItem* iPopItem;
       
    98 
       
    99 
       
   100     };
       
   101 
       
   102 #endif      // CSAVESMTPPOPITEM_H   
       
   103             
       
   104 // End of File