contentstorage/caclient/stub/inc/caobjectadapter.h
branchRCL_3
changeset 113 0efa10d348c0
equal deleted inserted replaced
111:053c6c7c14f3 113:0efa10d348c0
       
     1 /*
       
     2  * Copyright (c) 2009 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 #ifndef CAOBJECTADAPTER_H
       
    19 #define CAOBJECTADAPTER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <QPixmap>
       
    23 
       
    24 #include <cadefs.h>
       
    25 
       
    26 class QSize;
       
    27 class CaEntry;
       
    28 class CaIconDescription;
       
    29 class HbIcon;
       
    30 
       
    31 class CaObjectAdapter
       
    32 {
       
    33 public:
       
    34 
       
    35     static HbIcon makeIcon(const CaEntry &entry, const QSizeF &size);
       
    36 
       
    37     static void setId(CaEntry &entry, int id);
       
    38 
       
    39     static void setId(CaIconDescription &iconDescription, int id);
       
    40                       
       
    41     static ErrorCode convertErrorCode(int internalErrorCode);
       
    42 
       
    43 };
       
    44 
       
    45 #endif // CAOBJECTADAPTER_H