1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-04 15:41:19 +00:00
Purism-Calls/tests/mock-call.h
Evangelos Ribeiro Tzaras a048b4c83d call: Move state property into base class
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.
2021-12-20 12:25:19 +01:00

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