iaupdate/IAD/updater/updaterfiles/inc/iaupdaterresult.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007-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:   CIAUpdaterResult
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef IA_UPDATER_RESULT_H
       
    22 #define IA_UPDATER_RESULT_H
       
    23 
       
    24 
       
    25 #include <e32base.h>
       
    26 #include <s32strm.h>
       
    27 #include <e32cmn.h>
       
    28 
       
    29 class CIAUpdaterIdentifier;
       
    30 
       
    31 /**
       
    32  *
       
    33  */
       
    34 class CIAUpdaterResult : public CBase
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     IMPORT_C static CIAUpdaterResult* NewL();
       
    40 
       
    41     IMPORT_C static CIAUpdaterResult* NewLC();
       
    42     
       
    43     
       
    44     IMPORT_C virtual ~CIAUpdaterResult();
       
    45 
       
    46     IMPORT_C CIAUpdaterIdentifier& Identifier();
       
    47 
       
    48     IMPORT_C TInt ErrorCode() const;
       
    49     IMPORT_C void SetErrorCode( const TInt aErrorCode );
       
    50 
       
    51     IMPORT_C TBool Hidden() const;
       
    52     IMPORT_C void SetHidden( TBool aHidden );
       
    53     
       
    54 
       
    55     void InternalizeL( RReadStream& aStream );
       
    56 
       
    57     void ExternalizeL( RWriteStream& aStream );
       
    58 
       
    59 
       
    60 private:
       
    61 
       
    62     // Prevent these if not implemented
       
    63     CIAUpdaterResult( const CIAUpdaterResult& aObject );
       
    64     CIAUpdaterResult& operator =( const CIAUpdaterResult& aObject );
       
    65 
       
    66 
       
    67     CIAUpdaterResult();
       
    68     
       
    69     void ConstructL();
       
    70 
       
    71 
       
    72 private: // data
       
    73     
       
    74     CIAUpdaterIdentifier* iIdentifier;
       
    75     TInt iErrorCode;
       
    76     TBool iHidden;
       
    77     
       
    78     };
       
    79 		
       
    80 #endif // IA_UPDATER_RESULT_H
       
    81