mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-04 15:41:19 +00:00
a048b4c83d
This let's us get rid of a lot of duplication in the derived classes. Additionally we set the initial state to CALLS_CALL_STATE_INCOMING if inbound is TRUE and CALLS_CALL_STATE_DIALING otherwise.
26 lines
724 B
C
26 lines
724 B
C
/*
|
|
* Copyright (C) 2021 Purism SPC
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*
|
|
* Author: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "calls-call.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define CALLS_TYPE_MOCK_CALL (calls_mock_call_get_type())
|
|
|
|
G_DECLARE_FINAL_TYPE (CallsMockCall, calls_mock_call, CALLS, MOCK_CALL, CallsCall)
|
|
|
|
CallsMockCall *calls_mock_call_new (void);
|
|
void calls_mock_call_set_id (CallsMockCall *self,
|
|
const char *id);
|
|
void calls_mock_call_set_name (CallsMockCall *self,
|
|
const char *name);
|
|
|
|
G_END_DECLS
|