uiservicetab/vimpststorage/tsrc/vimpststorage_ut/stubs/s_MVPbkContactFieldBinaryDatastub.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     1 /*
       
     2 * Copyright (c) 2002-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:  
       
    15 :                
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CVPBKCONTACTFIELDBINARYDATASTUB_H
       
    22 #define CVPBKCONTACTFIELDBINARYDATASTUB_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <MVPbkContactFieldBinaryData.h>
       
    26 
       
    27 
       
    28 // CLASS DECLARATIONS
       
    29 
       
    30 /**
       
    31  * Virtual Phonebook binary field data.
       
    32  * This interface is used to manipulate binary contact field data.
       
    33  */
       
    34 class CVPbkContactFieldBinaryDataStub : public MVPbkContactFieldBinaryData
       
    35     {
       
    36     public:  // Destructor
       
    37         /**
       
    38          * Destructor.
       
    39          */
       
    40         ~CVPbkContactFieldBinaryDataStub();
       
    41         
       
    42         CVPbkContactFieldBinaryDataStub();
       
    43 
       
    44 
       
    45     
       
    46     public:  // Interface
       
    47     
       
    48         /**
       
    49          * Returns the binary data pointer.
       
    50          * @return Pointer to binary data.
       
    51          */
       
    52         TPtrC8 BinaryData() const ;
       
    53 
       
    54         /**
       
    55          * Sets the binary data.
       
    56          * @exception KErrOverflow if (aBinaryData.Length() > MaxLength())
       
    57          * @param aBinaryData   Binary data to be set.
       
    58          */
       
    59         void SetBinaryDataL( const TDesC8& aBinaryData ) ;
       
    60 
       
    61         /**
       
    62          * Returns the derived data type id.
       
    63          * @return Contact field storage type.
       
    64          */
       
    65         TVPbkFieldStorageType DataType() const;
       
    66 
       
    67         /**
       
    68          * Returns true if the storage is empty.
       
    69          * @return ETrue if the data field is empty.
       
    70          */
       
    71         TBool IsEmpty() const;
       
    72 
       
    73         /**
       
    74          * Copies data from given field data.
       
    75          * @param aFieldData    Data that is copied to this object.
       
    76          * @precond aFieldData.DataType() == this->DataType()
       
    77          */
       
    78         void CopyL(const MVPbkContactFieldData& aFieldData) ;
       
    79     };
       
    80 
       
    81 #endif  // CVPBKCONTACTFIELDBINARYDATASTUB_H
       
    82 
       
    83 // End of File