TizenRefApp-8402 [Call UI] Add ICall public interface 46/125846/1
authorIgor Olshevskyi <i.olshevskyi@samsung.com>
Tue, 18 Apr 2017 14:10:51 +0000 (17:10 +0300)
committerIgor Olshevskyi <i.olshevskyi@samsung.com>
Wed, 19 Apr 2017 05:50:55 +0000 (08:50 +0300)
Change-Id: I849e098f617a6af8d17fe982c346732f544cfd95

17 files changed:
inc/main/Instance.h
inc/model/Call.h [deleted file]
inc/model/CallBuilder.h [new file with mode: 0644]
inc/model/ICall.h [new file with mode: 0644]
inc/model/ICallListener.h [new file with mode: 0644]
inc/model/ICallManagerListener.h [deleted file]
inc/model/types.h
inc/types.h
src/main/Instance.cpp
src/model/Call.cpp
src/model/Call.h [new file with mode: 0644]
src/model/CallBuilder.cpp [new file with mode: 0644]
src/model/CallManager.cpp
src/model/ICallManagerListener.h [new file with mode: 0644]
src/model/helpers.h
src/model/helpers.hpp
src/model/implTypes.h

index 5302e33f51cb9585b42a4dac12efba13631f1395..40b2b54e660a66632a0874d7f721d23c35ef2709 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "ucl/appfw/SysEventProvider.h"
 
-#include "model/Call.h"
+#include "model/ICall.h"
 
 namespace callui {
 
@@ -37,7 +37,7 @@ namespace callui {
                // For testing
                ucl::WindowWRef getWindow();
                ucl::IInstanceContext *getContext();
-               CallWRef getCall();
+               ICallWRef getCall();
 
                // IInstance //
 
@@ -58,7 +58,7 @@ namespace callui {
                ucl::SysEventProvider &m_sysEventProvider;
                ucl::IInstanceContext *m_context;
                ucl::WindowSRef m_win;
-               CallSRef m_call;
+               ICallSRef m_call;
        };
 }
 
diff --git a/inc/model/Call.h b/inc/model/Call.h
deleted file mode 100644 (file)
index 5acb364..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright 2017 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __CALLUI_MODEL_CALL_H__
-#define __CALLUI_MODEL_CALL_H__
-
-#include <app_control.h>
-
-#include "types.h"
-
-namespace callui {
-
-       UCL_DECLARE_REF_ALIASES(CallManager);
-       UCL_DECLARE_REF_ALIASES(SoundManager);
-
-       class Call final : public ucl::NonCopyable {
-       public:
-               class Builder {
-               public:
-                       Builder();
-                       Builder &setListener(ICallManagerListenerWRef value);
-                       CallSRef build() const;
-               private:
-                       ICallManagerListenerWRef m_listener;
-               };
-
-       public:
-               virtual ~Call();
-
-               ucl::Result processAppControl(app_control_h appControl);
-               ISoundManagerSRef getSoundManager();
-               ICallManagerSRef getCallManager();
-
-       private:
-               friend class ucl::RefCountObj<Call>;
-               Call();
-
-               ucl::Result prepare(ICallManagerListenerWRef listener);
-
-       private:
-               CallManagerSRef m_callManager;
-               SoundManagerSRef m_soundManager;
-       };
-
-}
-
-#endif // __CALLUI_MODEL_CALL_H__
diff --git a/inc/model/CallBuilder.h b/inc/model/CallBuilder.h
new file mode 100644 (file)
index 0000000..b603cd1
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef CALLUI_MODEL_CALL_BUILDER_H__
+#define CALLUI_MODEL_CALL_BUILDER_H__
+
+#include "types.h"
+
+namespace callui {
+
+       class CallBuilder {
+       public:
+               CallBuilder();
+               CallBuilder &setListener(ICallListenerWRef value);
+               ICallSRef build() const;
+
+       private:
+               ICallListenerWRef m_listener;
+       };
+
+}
+
+#endif // CALLUI_MODEL_CALL_BUILDER_H__
diff --git a/inc/model/ICall.h b/inc/model/ICall.h
new file mode 100644 (file)
index 0000000..c5fcf5b
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __CALLUI_MODEL_I_CALL_H__
+#define __CALLUI_MODEL_I_CALL_H__
+
+#include <app_control.h>
+
+#include "types.h"
+
+namespace callui {
+
+       class ICall : public ucl::Polymorphic {
+       public:
+               virtual ucl::Result processAppControl(app_control_h appControl) = 0;
+               virtual ISoundManagerSRef getSoundManager() = 0;
+               virtual ICallManagerSRef getCallManager() = 0;
+       };
+
+}
+
+#endif // __CALLUI_MODEL_I_CALL_H__
diff --git a/inc/model/ICallListener.h b/inc/model/ICallListener.h
new file mode 100644 (file)
index 0000000..0c72b73
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __CALLUI_MODEL_I_CALL_LISTENER_H__
+#define __CALLUI_MODEL_I_CALL_LISTENER_H__
+
+#include "types.h"
+
+namespace callui {
+
+       class ICallListener : public ucl::Polymorphic {
+       public:
+               virtual void onCallEvent(CallEventType type) = 0;
+               virtual void onError(CallErr err) = 0;
+       };
+
+}
+
+#endif // __CALLUI_MODEL_I_CALL_LISTENER_H__
diff --git a/inc/model/ICallManagerListener.h b/inc/model/ICallManagerListener.h
deleted file mode 100644 (file)
index f3433ad..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright 2017 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __CALLUI_MODEL_I_CALL_MANAGER_LISTENER_H__
-#define __CALLUI_MODEL_I_CALL_MANAGER_LISTENER_H__
-
-#include "types.h"
-
-namespace callui {
-
-       class ICallManagerListener : public ucl::Polymorphic {
-       public:
-               virtual void onCallEvent(CallEventType type) = 0;
-               virtual void onError(CallManagerErr err) = 0;
-       };
-
-}
-
-#endif // __CALLUI_MODEL_I_CALL_MANAGER_LISTENER_H__
index 2b86f22f8a2cd540f7714f34791d0fc9852468c6..41eac45cba4e8fabf6773996727532ca25343825 100644 (file)
 
 namespace callui {
 
+       enum class CallErr {
+               DIAL_CANCEL,
+               DIAL_FAIL,
+               DIAL_FLIGHT_MODE
+       };
+
        enum class SimSlot {
                UNDEFINED,
                FIRST,
@@ -30,15 +36,6 @@ namespace callui {
                DEFAULT
        };
 
-       enum class CallManagerErr {
-               NONE,
-               DIAL_CANCEL,
-               DIAL_FAIL,
-               DIAL_FAIL_SS,
-               DIAL_FAIL_FDN,
-               DIAL_FLIGHT_MODE
-       };
-
        enum class CallAnswerType {
                NORMAL,
                HOLD_ACTIVE_AND_ACCEPT,
@@ -87,13 +84,12 @@ namespace callui {
                NAME
        };
 
-       UCL_DECLARE_REF_ALIASES(Call);
+       UCL_DECLARE_REF_ALIASES(ICall);
+       UCL_DECLARE_REF_ALIASES(ICallListener);
 
        UCL_DECLARE_REF_ALIASES(ICallManager);
        UCL_DECLARE_REF_ALIASES(ISoundManager);
 
-       UCL_DECLARE_REF_ALIASES(ICallManagerListener);
-
        UCL_DECLARE_REF_ALIASES(IIncomingCall);
        UCL_DECLARE_REF_ALIASES(IActiveCall);
        UCL_DECLARE_REF_ALIASES(IHeldCall);
index 75a622c353af5c5250918be69556dc01ed5951c1..fcccaaa58efd1f1b2ee44535f62bf7f1cd33424b 100644 (file)
@@ -22,6 +22,7 @@
 #include "ucl/util/types.h"
 #include "ucl/util/memory.h"
 #include "ucl/util/delegation.h"
+#include "ucl/misc/RefCountAware.h"
 
 namespace callui {
        enum {
index e2fbeff9332e721acdbf503aa378bf73f8d4c0c8..339120c16c43b05de491f71a8c26da6cefd724e6 100644 (file)
 #include <system_settings.h>
 #include <efl_extension.h>
 
-#include "../common.h"
-
+#include "model/CallBuilder.h"
 #include "model/ICallManager.h"
-#include "model/ICallManagerListener.h"
 #include "model/IIncomingCall.h"
 #include "model/IActiveCall.h"
 #include "model/IHeldCall.h"
 #include "model/IEndCall.h"
 #include "model/ICallInfo.h"
+#include "model/ICallListener.h"
+
+#include "../common.h"
 
 namespace callui {
 
@@ -37,16 +38,17 @@ namespace callui {
 
        // For testing
        UCL_DECLARE_REF_ALIASES(Listener);
-       class Listener : public ICallManagerListener {
+       class Listener : public ICallListener {
        public:
                static ListenerSRef newInstance(Instance &instance)
                {
                        return makeShared<Listener>(instance);
                }
+
                virtual void onCallEvent(CallEventType type) override final
                {
                        WindowWRef win = m_instance.getWindow();
-                       CallWRef call = m_instance.getCall();
+                       ICallWRef call = m_instance.getCall();
                        ICallManagerSRef callMng = {};
                        if (call) {
                                callMng = call->getCallManager();
@@ -103,12 +105,19 @@ namespace callui {
                        }
                }
 
-               virtual void onError(CallManagerErr err) override final
+               virtual void onError(CallErr err) override final
                {
                        ILOG();
                }
 
        private:
+               friend class ucl::RefCountObj<Listener>;
+               Listener(Instance &instance):
+                       m_instance(instance)
+               {
+                       ILOG();
+               }
+
                void logCallInfo(ICallInfoSCRef info)
                {
                        ILOG("* call id [%d]", info->getCallId());
@@ -116,13 +125,6 @@ namespace callui {
                        ILOG("* conference member count [%d]", info->getConferenceMemberCount());
                }
 
-       private:
-               friend class ucl::RefCountObj<Listener>;
-               Listener(Instance &instance):
-                       m_instance(instance)
-               {
-                       ILOG();
-               }
        private:
                Instance &m_instance;
        };
@@ -147,7 +149,7 @@ namespace callui {
 
                // For testing
                static ListenerSRef listener = Listener::newInstance(*this);
-               m_call = Call::Builder().
+               m_call = CallBuilder().
                                setListener(listener).
                                build();
 
@@ -225,7 +227,7 @@ namespace callui {
                return m_context;
        }
 
-       CallWRef Instance::getCall()
+       ICallWRef Instance::getCall()
        {
                return m_call;
        }
index 327fefa841669bbb42645738d201c3b1c19d8daa..68d9d67e6482b300d1f8213fa577fcabfbd8b7f9 100644 (file)
  * limitations under the License.
  */
 
-#include "model/Call.h"
+#include "Call.h"
 
 #include <app_control.h>
 
 #include "CallClient.h"
 #include "CallManager.h"
 #include "SoundManager.h"
+#include "model/ICallListener.h"
 
 #include "common.h"
 
@@ -28,25 +29,9 @@ namespace callui {
 
        using namespace ucl;
 
-       Call::Builder::Builder():
-                       m_listener(nullptr)
-       {
-       }
-
-       Call::Builder &Call::Builder::setListener(ICallManagerListenerWRef value)
-       {
-               m_listener = value;
-               return *this;
-       }
-
-       CallSRef Call::Builder::build() const
-       {
-               auto result = makeShared<Call>();
-               FAIL_RETURN_VALUE(result->prepare(m_listener), {}, "result->prepare() failed!");
-               return result;
-       }
-
-       Call::Call()
+       Call::Call(RefCountObjBase &rc, ICallListenerWRef listener):
+                       RefCountAware(&rc),
+                       m_listener(listener)
        {
        }
 
@@ -124,14 +109,14 @@ namespace callui {
                return ret;
        }
 
-       Result Call::prepare(ICallManagerListenerWRef listener)
+       Result Call::prepare()
        {
                CallClientSRef callClient = CallClient::newInstance();
                if (!callClient) {
                        LOG_RETURN(RES_FAIL, "Client::newInstance() failed!");
                }
 
-               m_callManager = CallManager::newInstance(callClient, listener);
+               m_callManager = CallManager::newInstance(callClient, asWeak(*this));
                if (!m_callManager) {
                        LOG_RETURN(RES_FAIL, "CallManager::newInstance() failed!");
                }
@@ -154,4 +139,31 @@ namespace callui {
                return m_soundManager;
        }
 
+       void Call::onCallEvent(CallEventType type)
+       {
+               if (m_listener) {
+                       m_listener->onCallEvent(type);
+               }
+       }
+
+       void Call::onError(CallManagerErr err)
+       {
+               CallErr callErr = CallErr::DIAL_FAIL;
+               switch (err) {
+               case CallManagerErr::DIAL_CANCEL:
+                       callErr = CallErr::DIAL_CANCEL;
+                       break;
+               case CallManagerErr::DIAL_FLIGHT_MODE:
+                       callErr = CallErr::DIAL_FLIGHT_MODE;
+                       break;
+               default:
+                       callErr = CallErr::DIAL_FAIL;
+                       break;
+               }
+
+               if (m_listener) {
+                       m_listener->onError(callErr);
+               }
+       }
+
 }
diff --git a/src/model/Call.h b/src/model/Call.h
new file mode 100644 (file)
index 0000000..2754e79
--- /dev/null
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __CALLUI_MODEL_CALL_H__
+#define __CALLUI_MODEL_CALL_H__
+
+#include "model/ICall.h"
+#include "ICallManagerListener.h"
+
+#include <app_control.h>
+
+#include "types.h"
+
+namespace callui {
+
+       UCL_DECLARE_REF_ALIASES(CallManager);
+       UCL_DECLARE_REF_ALIASES(SoundManager);
+
+       class Call final :
+               public ucl::RefCountAware,
+               public ICall,
+               public ICallManagerListener {
+       public:
+               virtual ~Call();
+
+               // ICall
+
+               virtual ucl::Result processAppControl(app_control_h appControl) override final;
+               virtual ISoundManagerSRef getSoundManager() override final;
+               virtual ICallManagerSRef getCallManager() override final;
+
+               // ICallManagerListener
+
+               virtual void onCallEvent(CallEventType type) override final;
+               virtual void onError(CallManagerErr err) override final;
+
+       private:
+               friend class CallBuilder;
+               friend class ucl::RefCountObj<Call>;
+               Call(ucl::RefCountObjBase &rc, ICallListenerWRef listener);
+
+               ucl::Result prepare();
+
+       private:
+               CallManagerSRef m_callManager;
+               SoundManagerSRef m_soundManager;
+               ICallListenerWRef m_listener;
+       };
+
+}
+
+#endif // __CALLUI_MODEL_CALL_H__
diff --git a/src/model/CallBuilder.cpp b/src/model/CallBuilder.cpp
new file mode 100644 (file)
index 0000000..6d2b9bf
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "model/CallBuilder.h"
+
+#include "Call.h"
+
+#include "common.h"
+
+namespace callui {
+
+       using namespace ucl;
+
+       CallBuilder::CallBuilder():
+                       m_listener(nullptr)
+       {
+       }
+
+       CallBuilder &CallBuilder::setListener(ICallListenerWRef value)
+       {
+               m_listener = value;
+               return *this;
+       }
+
+       ICallSRef CallBuilder::build() const
+       {
+               auto result = makeShared<Call>(m_listener);
+               FAIL_RETURN_VALUE(result->prepare(), {}, "result->prepare() failed!");
+               return result;
+       }
+
+}
index ab507a5dee8e61f09a2c7cf7048009e8ebc90e2c..d8a49ec50964ba5c2f1930423699aa73d3a9034f 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "CallManager.h"
 
-#include "model/ICallManagerListener.h"
+#include "ICallManagerListener.h"
 
 #include "CallClient.h"
 #include "RejectMsgProvider.h"
@@ -286,8 +286,31 @@ namespace callui {
        {
                m_waitDialing = false;
 
-               CallManagerErr err = convertCMDialStatusIntoErr(status);
-               if (err != CallManagerErr::NONE && m_listener) {
+               CallManagerErr err = CallManagerErr::DIAL_FAIL;
+               switch (status) {
+               case CM_DIAL_SUCCESS:
+                       return;
+               case CM_DIAL_CANCEL:
+                       err = CallManagerErr::DIAL_CANCEL;
+                       break;
+               case CM_DIAL_FAIL:
+                       err = CallManagerErr::DIAL_FAIL;
+                       break;
+               case CM_DIAL_FAIL_SS:
+                       err = CallManagerErr::DIAL_FAIL_SS;
+                       break;
+               case CM_DIAL_FAIL_FDN:
+                       err = CallManagerErr::DIAL_FAIL_FDN;
+                       break;
+               case CM_DIAL_FAIL_FLIGHT_MODE:
+                       err = CallManagerErr::DIAL_FLIGHT_MODE;
+                       break;
+               default:
+                       err = CallManagerErr::DIAL_FAIL;
+                       break;
+               }
+
+               if (m_listener) {
                        m_listener->onError(err);
                }
        }
diff --git a/src/model/ICallManagerListener.h b/src/model/ICallManagerListener.h
new file mode 100644 (file)
index 0000000..5d66a7c
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __CALLUI_MODEL_I_CALL_MANAGER_LISTENER_H__
+#define __CALLUI_MODEL_I_CALL_MANAGER_LISTENER_H__
+
+#include "implTypes.h"
+
+namespace callui {
+
+       class ICallManagerListener : public ucl::Polymorphic {
+       public:
+               virtual void onCallEvent(CallEventType type) = 0;
+               virtual void onError(CallManagerErr err) = 0;
+       };
+
+}
+
+#endif // __CALLUI_MODEL_I_CALL_MANAGER_LISTENER_H__
index 66f5a53df402af1a4f0a050d0c6c8e5687fb313b..2f11b91d25f698e51622366a6487ff0942339d93 100644 (file)
@@ -28,8 +28,6 @@ namespace callui {
 
        AudioStateType convertCMAudioState(cm_audio_state_type_e state);
 
-       CallManagerErr convertCMDialStatusIntoErr(cm_dial_status_e status);
-
        cm_multi_sim_slot_type_e convertCUISimSlot(SimSlot slot);
 
        SimSlot convertCMSimSlot(cm_multi_sim_slot_type_e slot);
index d80b80080717cfa3019dad46c736d74bf6a7b421..a6485e11022d4bcbd3ab6c9b5b809204582c70a0 100644 (file)
@@ -47,20 +47,6 @@ namespace callui {
                }
        }
 
-       inline CallManagerErr convertCMDialStatusIntoErr(cm_dial_status_e status)
-       {
-               switch (status) {
-               case CM_DIAL_SUCCESS:           return CallManagerErr::NONE;
-               case CM_DIAL_CANCEL:            return CallManagerErr::DIAL_CANCEL;
-               case CM_DIAL_FAIL:              return CallManagerErr::DIAL_FAIL;
-               case CM_DIAL_FAIL_SS:           return CallManagerErr::DIAL_FAIL_SS;
-               case CM_DIAL_FAIL_FDN:          return CallManagerErr::DIAL_FAIL_FDN;
-               case CM_DIAL_FAIL_FLIGHT_MODE:  return CallManagerErr::DIAL_FLIGHT_MODE;
-               default:
-                       return CallManagerErr::DIAL_FAIL;
-               }
-       }
-
        inline cm_multi_sim_slot_type_e convertCUISimSlot(SimSlot slot)
        {
                switch (slot) {
index e1e185c06b71a2b62ebde71cde7ddedc76b2ab2f..4b5536c874d6fbf945bf59edd9b1d88063be7936 100644 (file)
@@ -29,11 +29,21 @@ namespace callui {
                ALL_ACTIVE
        };
 
+       enum class CallManagerErr {
+               DIAL_CANCEL,
+               DIAL_FAIL,
+               DIAL_FAIL_SS,
+               DIAL_FAIL_FDN,
+               DIAL_FLIGHT_MODE
+       };
+
        UCL_DECLARE_REF_ALIASES(CallClient);
 
        UCL_DECLARE_REF_ALIASES(SoundManager);
        UCL_DECLARE_REF_ALIASES(CallManager);
 
+       UCL_DECLARE_REF_ALIASES(ICallManagerListener);
+
        UCL_DECLARE_REF_ALIASES(IncomingCall);
        UCL_DECLARE_REF_ALIASES(ActiveCall);
        UCL_DECLARE_REF_ALIASES(HeldCall);
@@ -49,6 +59,7 @@ namespace callui {
 
        using AudioStateEvent = ucl::Event<AudioStateHandler>;
        using MuteStateEvent = ucl::Event<MuteStateHandler>;
+
 }
 
 #endif // __CALLUI_MODEL_IMPL_TYPES_H__