natfw/tsrc/natfwtestconsoles/natfwtestconsole/inc/natcandidatestore.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     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:    Candidate store
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef NATCANDIDATESTORE_H
       
    22 #define NATCANDIDATESTORE_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <f32file.h>
       
    26  
       
    27 class CNATFWCandidate;
       
    28 
       
    29 class CNATCandidateStore : public CBase
       
    30 {
       
    31 public:
       
    32 
       
    33     static CNATCandidateStore* NewL();
       
    34     static CNATCandidateStore* NewLC();
       
    35     virtual ~CNATCandidateStore();
       
    36 
       
    37     /**
       
    38      * Write candidates to memory card
       
    39      *
       
    40      * @since   S60 3.2
       
    41      * @param   aCandidates    The candidate array
       
    42      * @return  void
       
    43      */
       
    44     void WriteL( const RPointerArray<CNATFWCandidate>& aCandidates );
       
    45     
       
    46     /**
       
    47      * Read candidates from memory card 
       
    48      *
       
    49      * @since   S60 3.2
       
    50      * @param   aCandidates    Returns candidate array
       
    51      * @return  void
       
    52      */
       
    53     void ReadL( RPointerArray<CNATFWCandidate>& aCandidates );
       
    54       
       
    55 private:
       
    56 
       
    57     CNATCandidateStore();
       
    58     void ConstructL();
       
    59     
       
    60 private: // date
       
    61 
       
    62     RFs iFileServer;
       
    63 };
       
    64 
       
    65 #endif // NATCANDIDATESTORE_H