mobilemessaging/smum/inc/SMSETDLG.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 *     Help classes to handle Service Centres and settings.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __SMSETDLG_H__
       
    22 #define __SMSETDLG_H__
       
    23 
       
    24 //    uikon includes
       
    25 #if !defined(__EIKDIALG_H__)
       
    26 #include <eikdialg.h>                    // CEikDialog
       
    27 #endif // __EIKDIALG_H__
       
    28 
       
    29 #if !defined(__E32DEF_H__)
       
    30 #include <e32def.h>
       
    31 #endif // __E32DEF_H__
       
    32 
       
    33 // INCLUDES
       
    34 #include <muiusettingsarray.h>          // CMuiuSettingsArray 
       
    35 #include "SMSU.H"                       // CSmsMtmUi
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 class CEikColumnListBox;
       
    39 class CSmsUiSettings;
       
    40 
       
    41 //  CLASS DEFINITIONS
       
    42 
       
    43 /**
       
    44 *  TSmumSCNameInfo
       
    45 */
       
    46 NONSHARABLE_CLASS( TSmumSCNameInfo )
       
    47     {
       
    48     public: // Constructors and destructor
       
    49 
       
    50         // Constructors
       
    51         TSmumSCNameInfo( const TDesC& aName, const TDesC& aAddress );
       
    52         TSmumSCNameInfo( const TDesC& aName );
       
    53         
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         ~TSmumSCNameInfo();
       
    58   
       
    59     public: // New functions
       
    60 
       
    61         /**
       
    62         * Returns SC name
       
    63         * @return descriptor pointer SC name
       
    64         */
       
    65         TPtrC Name() const;
       
    66 
       
    67         /**
       
    68         * Returns SC number
       
    69         * @return descriptor pointer SC number
       
    70         */
       
    71         TPtrC Address() const;
       
    72 
       
    73         /**
       
    74         * Returns SC name and number
       
    75         * @return descriptor pointer SC name and name
       
    76         */
       
    77         inline TPtrC NameAndAddress() const {return iNameAndAddress;};
       
    78 
       
    79     private:
       
    80 
       
    81         // Prohibit copy constructor
       
    82         TSmumSCNameInfo( const TSmumSCNameInfo& );
       
    83         // Prohibit assigment operator
       
    84         TSmumSCNameInfo& operator= ( const TSmumSCNameInfo& );
       
    85         
       
    86     private: // Data 
       
    87         TBuf<2*KHumanReadableNameLength> iNameAndAddress;
       
    88         TInt                             iNameLength;
       
    89     };
       
    90 
       
    91 /**
       
    92 *  CSmumSCArray
       
    93 *  Inherited from MDesCArray, CArrayFixFlat
       
    94 */
       
    95 NONSHARABLE_CLASS( CSmumSCArray ) : public CArrayFixFlat<TSmumSCNameInfo>, public MDesCArray
       
    96     {
       
    97     public: // Constructors and destructor
       
    98 
       
    99         // Constuctor
       
   100         static CSmumSCArray* NewL( TInt aGranularity );
       
   101         
       
   102         /**
       
   103         * Destructor.
       
   104         */
       
   105         ~CSmumSCArray();
       
   106 
       
   107     public: // New functions
       
   108 
       
   109         /**
       
   110         * Returns asked reference from array
       
   111         * @param aIndex referenced TSmumSCNameInfo in array
       
   112         * @return reference to TSmumSCNameInfo
       
   113         */        
       
   114         TSmumSCNameInfo& SCNameInfo( TInt aIndex );
       
   115         
       
   116     private: // Functions from base classes
       
   117 
       
   118         /**
       
   119         * From MDesCArray
       
   120         */
       
   121         TInt MdcaCount() const;
       
   122         
       
   123         /**
       
   124         * From MDesCArray
       
   125         */
       
   126         TPtrC MdcaPoint( TInt aIndex ) const;
       
   127         
       
   128     private:
       
   129 
       
   130         /**
       
   131         * By default Symbian OS constructor is private.
       
   132         */  
       
   133         void ConstructL();
       
   134 
       
   135         /**
       
   136         * By default Symbian OS constructor is private.
       
   137         */  
       
   138         CSmumSCArray( TInt aGranularity ); 
       
   139 
       
   140 
       
   141     private: // Data
       
   142         HBufC*                          iStringForSCName; 
       
   143     };
       
   144 
       
   145 /**
       
   146 *  CSmumSettingsArray
       
   147 *  Inherited from CMuiuSettingsArray
       
   148 */
       
   149 NONSHARABLE_CLASS( CSmumSettingsArray ) : public CMuiuSettingsArray
       
   150     {
       
   151     public: // Constructors and destructor
       
   152         
       
   153         // Constructor
       
   154         static CSmumSettingsArray* NewL( TInt aResourceId );
       
   155 
       
   156         /**
       
   157         * Destructor.
       
   158         */
       
   159         ~CSmumSettingsArray();
       
   160         
       
   161     public: // New functions
       
   162 
       
   163         /**
       
   164         * Sets replypath-variable
       
   165         * @param aReplyPathProvided boolean
       
   166         */
       
   167         void SetReplyPath( TBool aReplyPathProvided );
       
   168         
       
   169         /**
       
   170         * Returns replypath-variable
       
   171         * @return boolean
       
   172         */
       
   173         TBool ReplyPathProvided();
       
   174 
       
   175     private: // functions from base classes
       
   176         
       
   177              /**
       
   178              * From MDesCArray
       
   179         */
       
   180         TPtrC MdcaPoint( TInt aIndex ) const;
       
   181         
       
   182     private:
       
   183         
       
   184         /**
       
   185         * By default Symbian OS constructor is private.
       
   186         */  
       
   187         CSmumSettingsArray();
       
   188 
       
   189         /**
       
   190         * By default Symbian OS constructor is private.
       
   191         */  
       
   192         void ConstructL( TInt aResourceId );
       
   193                 
       
   194     private: // Data
       
   195         TBool               iReplyPathProvided;
       
   196         HBufC*              iReplyPathString;
       
   197     };
       
   198 
       
   199 #endif // __SMSETDLG_H__
       
   200 
       
   201 //  End of File