• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (C) 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef DTMFSENDERNODE_H_INCLUDED
18 #define DTMFSENDERNODE_H_INCLUDED
19 
20 #include <ImsMediaDefine.h>
21 #include <BaseNode.h>
22 
23 class DtmfSenderNode : public BaseNode
24 {
25 public:
26     DtmfSenderNode(BaseSessionCallback* callback = nullptr);
27     virtual ~DtmfSenderNode();
28     virtual kBaseNodeId GetNodeId();
29     virtual ImsMediaResult Start();
30     virtual void Stop();
31     virtual bool IsRunTime();
32     virtual bool IsSourceNode();
33     virtual void SetConfig(void* config);
34     virtual bool IsSameConfig(void* config);
35     virtual void ProcessData();
36 
37 private:
38     uint32_t mNextTime;
39     uint32_t mPrevTime;
40     int8_t mPtime;  // msec unit, interval between dtmf packets
41 };
42 
43 #endif  // DTMFSENDERNODE_H_INCLUDED
44