RDK Documentation (Open Sourced RDK Components)
aampdrmsessionfactory.h
Go to the documentation of this file.
1
/*
2
* If not stated otherwise in this file or this component's license file the
3
* following copyright and licenses apply:
4
*
5
* Copyright 2018 RDK Management
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
10
*
11
* http://www.apache.org/licenses/LICENSE-2.0
12
*
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS,
15
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
* See the License for the specific language governing permissions and
17
* limitations under the License.
18
*/
19
20
/**
21
* @file aampdrmsessionfactory.h
22
* @brief Header file for AampDrmSessionFactory
23
*/
24
25
#ifndef AampDrmSessionFactory_h
26
#define AampDrmSessionFactory_h
27
28
#include "
AampDrmSession.h
"
29
#include "
AampDrmHelper.h
"
30
#include "
AampDrmCallbacks.h
"
31
/**
32
* @class AampDrmSessionFactory
33
* @brief Factory class to create DRM sessions based on
34
* requested system ID
35
*/
36
class
AampDrmSessionFactory
37
{
38
public
:
39
40
/**
41
* @fn GetDrmSession
42
*
43
* @param[in] drmHelper - DrmHelper instance
44
* @return Pointer to DrmSession.
45
*/
46
static
AampDrmSession
*
GetDrmSession
(
AampLogManager
*logObj, std::shared_ptr<AampDrmHelper> drmHelper,
AampDrmCallbacks
*drmCallbacks);
47
};
48
#endif
AampDrmSessionFactory::GetDrmSession
static AampDrmSession * GetDrmSession(AampLogManager *logObj, std::shared_ptr< AampDrmHelper > drmHelper, AampDrmCallbacks *drmCallbacks)
Creates an appropriate DRM session based on the given DrmHelper.
Definition:
aampdrmsessionfactory.cpp:41
AampDrmCallbacks
DRM callback interface.
Definition:
AampDrmCallbacks.h:34
AampDrmHelper.h
Implented DRM helper functionalities.
AampDrmSessionFactory
Factory class to create DRM sessions based on requested system ID.
Definition:
aampdrmsessionfactory.h:36
AampLogManager
AampLogManager Class.
Definition:
AampLogManager.h:150
AampDrmCallbacks.h
Call back handler for Aamp.
AampDrmSession
Base class for DRM sessions.
Definition:
AampDrmSession.h:69
AampDrmSession.h
Header file for AampDrmSession.
components
generic
aamp
drm
aampdrmsessionfactory.h
Generated on Thu Feb 9 2023 06:32:27 for RDK Documentation (Open Sourced RDK Components) by
1.8.17