24
|
1 |
/**
|
|
2 |
* Copyright (c) 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 "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: CUpnpTmClientProfileService class declaration
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef __UPNPTMCLIENTPROFILESERVICE_H__
|
|
19 |
#define __UPNPTMCLIENTPROFILESERVICE_H__
|
|
20 |
|
|
21 |
|
|
22 |
// Include Files
|
|
23 |
#include <upnpserviceimplementation.h>
|
|
24 |
#include <upnphttpserverobserver.h>
|
|
25 |
#include <upnphttpservertransactioncreator.h>
|
|
26 |
#include <upnpcommonupnplits.h>
|
|
27 |
#include <upnpsettings.h>
|
|
28 |
#include <upnphttpserversession.h>
|
|
29 |
#include <upnphttpserverruntime.h>
|
|
30 |
|
|
31 |
// FORWARD DECLARATIONS
|
|
32 |
class CUPnPTmServerDevice;
|
|
33 |
class CUpnpTmServerImpl;
|
|
34 |
|
|
35 |
// CLASS DECLARATION
|
|
36 |
|
|
37 |
/**
|
|
38 |
* TerminalMode Client Profile Service class. It encapsulates all the actions related to the client
|
|
39 |
* profile and their related state variables.
|
|
40 |
*/
|
|
41 |
class CUpnpTmClientProfileService: public CUpnpServiceImplementation
|
|
42 |
{
|
|
43 |
public: // Constructors and destructors
|
|
44 |
/**
|
|
45 |
* Two-phased constructor.
|
|
46 |
* @param aService Parent service
|
|
47 |
*/
|
|
48 |
static CUpnpTmClientProfileService* NewL( CUpnpDevice& aUpnpDevice, const TDesC& aDescriptionPath ,
|
|
49 |
CUpnpTmServerImpl& aTmServerImpl );
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Destructor function called automatically from the destructor of a
|
|
53 |
* derived class
|
|
54 |
**/
|
|
55 |
~CUpnpTmClientProfileService();
|
|
56 |
|
|
57 |
public: //from CUpnpServiceImplementation
|
|
58 |
/**
|
|
59 |
* This functions is a entry point for actions. See coments in base class
|
|
60 |
*/
|
|
61 |
void ActionReceivedLD( CUpnpAction* aAction );
|
|
62 |
|
|
63 |
void UnUsedProfileIdEventL(const TDesC8& aUnusedProfileIdBuffer);
|
|
64 |
|
|
65 |
private:
|
|
66 |
// Actions supported by the client profile service
|
|
67 |
TUpnpErrorCode GetMaxNumProfilesActionL( CUpnpAction* aAction );
|
|
68 |
TUpnpErrorCode SetClientProfileActionL( CUpnpAction* aAction );
|
|
69 |
TUpnpErrorCode GetClientProfileActionL( CUpnpAction* aAction );
|
|
70 |
|
|
71 |
private: // Constructors
|
|
72 |
/**
|
|
73 |
* C++ default constructor.
|
|
74 |
*/
|
|
75 |
CUpnpTmClientProfileService( CUpnpDevice& aUpnpDevice,
|
|
76 |
CUpnpTmServerImpl& aTmServerImp );
|
|
77 |
/**
|
|
78 |
* Second phase of the constructor.
|
|
79 |
* Initialises a DOM tree.
|
|
80 |
* By default Symbian 2nd phase constructor is private.
|
|
81 |
* @param service Parent service
|
|
82 |
*/
|
|
83 |
void ConstructL(const TDesC& aDescriptionPath );
|
|
84 |
|
|
85 |
private:
|
|
86 |
CUpnpHttpServerSession* iHttpServerSession;
|
|
87 |
CUpnpDevice& iUpnpDevice;
|
|
88 |
CUpnpTmServerImpl& iTmServerImpl;
|
|
89 |
};
|
|
90 |
|
|
91 |
#endif // __UPNPTMCLIENTPROFILESERVICE_H__
|
|
92 |
|
|
93 |
// End Of File
|