installationservices/swcomponentregistry/source/client/appreginfo.cpp
branchRCL_3
changeset 25 7333d7932ef7
equal deleted inserted replaced
24:5cc91383ab1e 25:7333d7932ef7
       
     1 /*
       
     2 * Copyright (c) 2009-2010 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 the License "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 * appreginfo.cpp
       
    16 *
       
    17 */
       
    18 
       
    19 #include <s32strm.h>
       
    20 #include <usif/scr/appreginfo.h>
       
    21 
       
    22 namespace Usif
       
    23     {
       
    24 
       
    25 EXPORT_C TAppRegInfo::TAppRegInfo()
       
    26 	: iUid(TUid()),
       
    27 	iFullName(KNullDesC),
       
    28 	iCaption(KNullDesC),
       
    29 	iShortCaption(KNullDesC)
       
    30 	{}
       
    31 
       
    32 
       
    33 EXPORT_C TAppRegInfo::TAppRegInfo(TUid aAppUid, const TFileName& aAppName, const TAppCaption& aCaption)
       
    34 	: iUid(aAppUid),
       
    35 	iFullName(aAppName),
       
    36 	iCaption(aCaption),
       
    37 	iShortCaption(aCaption)
       
    38 	{}
       
    39 
       
    40 
       
    41 EXPORT_C TAppRegInfo::TAppRegInfo(TUid aAppUid, const TFileName& aAppName, const TAppCaption& aCaption, const TAppCaption& aShortCaption)
       
    42 	: iUid(aAppUid),
       
    43 	iFullName(aAppName),
       
    44 	iCaption(aCaption),
       
    45 	iShortCaption(aShortCaption)
       
    46 	{}
       
    47 
       
    48 
       
    49 EXPORT_C void TAppRegInfo::ExternalizeL(RWriteStream& aStream) const
       
    50 	{
       
    51 	aStream<< iUid;
       
    52 	aStream<< iFullName;
       
    53 	aStream<< iCaption;
       
    54 	aStream<< iShortCaption;
       
    55 	}
       
    56 
       
    57 
       
    58 
       
    59 EXPORT_C void TAppRegInfo::InternalizeL(RReadStream& aStream)
       
    60 	{
       
    61 	aStream>> iUid;
       
    62 	aStream>> iFullName;
       
    63 	aStream>> iCaption;
       
    64 	aStream>> iShortCaption;
       
    65 	}
       
    66 
       
    67 EXPORT_C TUid TAppRegInfo::Uid() const
       
    68    {
       
    69    return iUid;
       
    70    }
       
    71 
       
    72 EXPORT_C TFileName TAppRegInfo::FullName() const
       
    73    {
       
    74    return iFullName;
       
    75    }
       
    76 
       
    77 EXPORT_C TAppCaption TAppRegInfo::Caption() const
       
    78    {
       
    79    return iCaption;
       
    80    }
       
    81 
       
    82 EXPORT_C TAppCaption TAppRegInfo::ShortCaption() const
       
    83    {
       
    84    return iShortCaption;
       
    85    }
       
    86 }