Skip to content

Linux + iPhone Continuity / iMessage / SMS

602 B
Raw Blame
#pragma once

#include <gtk/gtk.h>
#include <nlohmann/json.hpp>
#include <string>

namespace tether::ui {

    // Calls on the iPhone, over Bluetooth Hands-Free.
    GtkWidget* calls_view_new();

    bool calls_view_handle_event(const nlohmann::json& event);

    // The call list is only re-read while the view is on screen. A ringing call
    // still arrives, because the daemon pushes those unasked.
    void calls_view_set_visible(bool visible);

    // Failures come back as bt_call_result, which this view reports.
    void calls_view_dial(const std::string& number);

} // namespace tether::ui