javaextensions/pim/agnadapter/inc.s60/cpimmemoadaptermanager.h
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Provides static information about event lists and creates
       
    15  *                event list adapters.
       
    16  *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPIMMEMOADAPTERMANAGER_H
       
    21 #define CPIMMEMOADAPTERMANAGER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "cpimeventadaptermanager.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  * PIM Memo Adapter Manager class
       
    30  */
       
    31 NONSHARABLE_CLASS(CPIMMemoAdapterManager): public CPIMEventAdapterManager
       
    32 {
       
    33 public: // Constructors and destructor
       
    34 
       
    35     /**
       
    36      * Two-phased constructor.
       
    37      */
       
    38     static CPIMMemoAdapterManager* NewL(const TDesC& aListName);
       
    39 
       
    40     /**
       
    41      * Destructor.
       
    42      */
       
    43     ~CPIMMemoAdapterManager();
       
    44 
       
    45 public: // New functions
       
    46 
       
    47     /**
       
    48      * Provides access to the \ref MPIMAdapterManager representation of
       
    49      * this object.
       
    50      *
       
    51      * @return The \ref MPIMAdapterManager representation of this object.
       
    52      */
       
    53     MPIMAdapterManager* GetAdapterManager();
       
    54 
       
    55     /**
       
    56      * Provides the supported repeat rule fields for a given frequency.
       
    57      *
       
    58      * @param aFrequency A frequency.
       
    59      *
       
    60      * @return Supported repeat rule fields for \a aFrequency. If no
       
    61      *         fields are supported for the frequency, an empty array
       
    62      *         is returned.
       
    63      *
       
    64      * @par Leaving:
       
    65      * @li \c KErrArgument - \a aFrequency is not a valid frequency.
       
    66      */
       
    67     const CArrayFix< TPIMField>& GetSupportedRepeatRuleFieldsL(
       
    68         const TPIMRepeatRuleFrequency& aFrequency);
       
    69 
       
    70     /**
       
    71      * Provides the supported interval values for given frequency.
       
    72      *
       
    73      * @param aFrequency A frequency.
       
    74      *
       
    75      * @return Supported interval values for given frequency. If the
       
    76      *         interval field is not supported for given frequency,
       
    77      *         an empty array is returned.
       
    78      *
       
    79      * @par Leaving:
       
    80      * @li \c KErrArgument - \a aFrequency is not a valid frequency.
       
    81      */
       
    82     const CArrayFix< TInt>& GetSupportedIntervalsL(
       
    83         const TPIMRepeatRuleFrequency& aFrequency);
       
    84 
       
    85 private:
       
    86 
       
    87     /**
       
    88      * C++ default constructor.
       
    89      */
       
    90     CPIMMemoAdapterManager();
       
    91 
       
    92     /**
       
    93      * By default Symbian 2nd phase constructor is private.
       
    94      */
       
    95     void ConstructL(const TDesC& aListName);
       
    96 
       
    97 private: // Member data
       
    98 
       
    99     // Array is owned by CPIMMemoAdapterManager class
       
   100     CArrayFixFlat< TPIMField>* iRepeatRuleFieldArrayMemoEmpty;
       
   101 };
       
   102 
       
   103 #endif // CPIMMEMOADAPTERMANAGER_H
       
   104 // End of File
       
   105