Move trace factory Ubuntu implementation to generic.
[platform/core/uifw/dali-adaptor.git] / dali / internal / trace / generic / trace-manager-impl-generic.h
1 #ifndef DALI_INTERNAL_TRACE_MANAGER_IMPL_UBUNTU_H
2 #define DALI_INTERNAL_TRACE_MANAGER_IMPL_UBUNTU_H
3
4 /*
5  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
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 // EXTERNAL INCLUDES
22
23 // INTERNAL INCLUDES
24 #include <dali/internal/trace/common/trace-manager-impl.h>
25
26 namespace Dali
27 {
28
29 namespace Internal
30 {
31
32 namespace Adaptor
33 {
34 class PerformanceInterface;
35
36 class TraceManagerGeneric : public Dali::Internal::Adaptor::TraceManager
37 {
38 public:
39   /**
40    * Static member to hold TraceManagerUbuntu instance. This allows
41    * to access PerformanceInterface for network logging.
42    */
43   static TraceManagerGeneric* traceManagerGeneric;
44
45   /**
46    * Explicit Constructor
47    */
48   explicit TraceManagerGeneric( PerformanceInterface* performanceInterface );
49
50 protected:
51   /**
52    * Destructor
53    */
54   ~TraceManagerGeneric() override = default;
55
56   /**
57    * Obtain the LogContextFunction method (Ubuntu specific) used for tracing
58    */
59   virtual Dali::Integration::Trace::LogContextFunction GetLogContextFunction() final;
60
61 private:
62
63   /**
64    * LogContext method (Ubuntu specific) used for tracing
65    */
66   static void LogContext( bool start, const char* tag );
67 };
68
69 } // namespace Adaptor
70
71 } // namespace Internal
72
73 } // namespace Dali
74
75 #endif // DALI_INTERNAL_TRACE_MANAGER_IMPL_UBUNTU_H