*/
bool launch(const ContactAddress &address);
+ /**
+ * @brief Launches view-operation.
+ * @param[in] string address (phone)
+ * @return true in case of success, otherwise returns false.
+ */
+ bool launch(const std::string &address);
+
/**
* @brief Launches view-operation.
* @return true in case of success, otherwise returns false.
return AppControlLauncher::getInst().launch(*this);
}
+bool ContactViewer::launch(const std::string &address)
+{
+ app_control_add_extra_data(m_Handle, APP_CONTROL_DATA_PHONE, address.c_str());
+ return launch();
+}
+
const char *ContactViewer::toStr(ContactAddress::OwnerType type)
{
switch (type)
#include "ConvList.h"
#include "WorkingDir.h"
#include "MoreOption.h"
+#include "ContactViewer.h"
namespace Msg
{
SelectButton *m_pSelectButton;
WorkingDirRef m_WorkingDir;
MoreOptionItemInfo m_MoreOptionItemsInfo[MorOptionMax];
+ ContactViewer m_ContactViewer;
};
}
#include "IconTextPopup.h"
#include "MsgBodyFrame.h"
#include "Recipient.h"
+#include "VoiceCall.h"
using namespace Msg;
void ConvFrame::onCallClicked(MoreOption &obj)
{
MSG_LOG("");
+ VoiceCall::launch(m_pList->getRecip().getAddress());
}
void ConvFrame::onSendMyLocationClicked(MoreOption &obj)
void ConvFrame::onRecipientsClicked(MoreOption &obj)
{
MSG_LOG("");
+ m_ContactViewer.launch(m_pList->getRecip().getAddress());
}
void ConvFrame::onBlockNumberClicked(MoreOption &obj)