-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContact.ice
More file actions
39 lines (31 loc) · 875 Bytes
/
Contact.ice
File metadata and controls
39 lines (31 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// **********************************************************************
//
// Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved.
//
// **********************************************************************
#pragma once
module Demo
{
enum NumberType
{
HOME,
OFFICE,
CELL
};
class Contact
{
string name;
optional(1) NumberType type = HOME;
optional(2) string number;
optional(3) int dialGroup;
};
interface ContactDB
{
void addContact(string name, optional(1) NumberType type, optional(2) string number, optional(3) int dialGroup);
void updateContact(string name, optional(1) NumberType type, optional(2) string number, optional(3) int dialGroup);
Contact query(string name);
optional(1) string queryNumber(string name);
void queryDialgroup(string name, out optional(1) int dialGroup);
void shutdown();
};
};