51
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
/**
|
|
17 |
@file
|
|
18 |
@publishedPartner
|
|
19 |
@released
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef BEARERSECURITY_H
|
|
23 |
#define BEARERSECURITY_H
|
|
24 |
|
|
25 |
#include <e32base.h>
|
|
26 |
|
|
27 |
/**
|
|
28 |
Wraps a bearer UID and the bearer's security policy.
|
|
29 |
*/
|
|
30 |
class TBearerSecurity
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
/** Link between elements of this type in a TSglQue. If this member
|
|
34 |
changes offset, remconserver must be rebuilt. */
|
|
35 |
TSglQueLink iLink;
|
|
36 |
|
|
37 |
public:
|
|
38 |
/** Constructor. */
|
|
39 |
IMPORT_C TBearerSecurity(TUid aUid, const TSecurityPolicy& aPolicy);
|
|
40 |
|
|
41 |
/** Destructor. */
|
|
42 |
IMPORT_C ~TBearerSecurity();
|
|
43 |
|
|
44 |
public:
|
|
45 |
/**
|
|
46 |
Accessor for bearer UID.
|
|
47 |
@return The bearer UID.
|
|
48 |
*/
|
|
49 |
IMPORT_C TUid BearerUid() const;
|
|
50 |
|
|
51 |
/**
|
|
52 |
Accessor for the bearer's security policy.
|
|
53 |
@return The security policy.
|
|
54 |
*/
|
|
55 |
IMPORT_C const TSecurityPolicy& SecurityPolicy() const;
|
|
56 |
|
|
57 |
private:
|
|
58 |
/** The bearer UID. */
|
|
59 |
const TUid iBearerUid;
|
|
60 |
|
|
61 |
/** The bearer's security policy. */
|
|
62 |
const TSecurityPolicy iSecurityPolicy;
|
|
63 |
|
|
64 |
/**
|
|
65 |
Pad for BC-friendly future change.
|
|
66 |
*/
|
|
67 |
TUint32 iPad;
|
|
68 |
};
|
|
69 |
|
|
70 |
#endif // BEARERSECURITY_H
|