os/security/contentmgmt/contentaccessfwfordrm/source/cafutils/mimefieldanddata.cpp
Update contrib.
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
21 #include <caf/caftypes.h>
23 #include "mimefieldanddata.h"
25 using namespace ContentAccess;
27 CMimeFieldAndData* CMimeFieldAndData::NewL(const TDesC8 &aFieldName, const TDesC8 &aData)
29 CMimeFieldAndData* self = new (ELeave) CMimeFieldAndData();
30 CleanupStack::PushL(self);
31 self->ConstructL(aFieldName, aData);
32 CleanupStack::Pop(self);
36 void CMimeFieldAndData::ConstructL(const TDesC8 &aFieldName, const TDesC8 &aData)
38 iFieldName = aFieldName.AllocL();
39 iData = aData.AllocL();
42 CMimeFieldAndData::CMimeFieldAndData()
46 CMimeFieldAndData::~CMimeFieldAndData()
52 TPtrC8 CMimeFieldAndData::FieldName() const
57 TPtrC8 CMimeFieldAndData::Data() const
61 #endif // #ifndef REMOVE_CAF1