This repository has been archived by the owner on Apr 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
actio_main.h
67 lines (53 loc) · 2.48 KB
/
actio_main.h
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#pragma once
#include "actio.h"
#include "KAccount.h"
#include <Stamina/Version.h>
namespace Actio {
extern Tables::oTable dtIncoming;
extern Tables::oTable dtOutgoing;
extern Tables::oTable dtNumbers;
extern Stamina::PhonoLogic::KAccount* account;
extern int mtypePhoneCall;
const char * const accountServer = "http://www.konnekt.info/actio_account.php?";
const char * const urlInformation = "http://www.konnekt.info/actio";
const char * const urlHelp = "http://www.konnekt.info/actio/pytania.html";
const char * const urlCreateAccount = "http://www.konnekt.info/actio/zaloz_konto.html";
const char * const urlLostPassword = "http://www.konnekt.info/actio/przypomnij_haslo.html";
const char * const urlSelfCare = "http://www.konnekt.info/actio/strefa_klienta.html";
const char * const urlProblemQuality = "http://www.konnekt.info/actio/porady/jakosc.html";
const char * const urlProblemMic = "http://www.konnekt.info/actio/porady/mikrofon.html";
const char * const urlProblemSound = "http://www.konnekt.info/actio/porady/dzwiek.html";
const char * const urlAccountBalance = "http://www.konnekt.info/actio/stan_konta.html";
extern const CStdString serverHost;
extern const CStdString stunHost;
class NumbersMap: public std::map<Stamina::PhonoLogic::PhoneUrl, tCntId> {
public:
void updateContact(tCntId cnt);
void removeContact(tCntId cnt);
void addContact(tCntId cnt);
int createContact(const Stamina::PhonoLogic::PhoneUrl& url, bool onList);
/// Przebudowuje ca³¹ listê od nowa
void updateContacts();
tCntId getContact(const Stamina::PhonoLogic::PhoneUrl& url);
tCntId getContact(const char* url);
CStdString getDisplay(const Stamina::PhonoLogic::PhoneUrl& url);
static CStdString getDisplay(const Stamina::PhonoLogic::PhoneUrl& url, tCntId cnt);
bool contactExists(tCntId cnt, Stamina::PhonoLogic::PhoneType type = Stamina::PhonoLogic::phoneNone);
Stamina::PhonoLogic::PhoneUrl chooseNumber(tCntId cnt, Stamina::PhonoLogic::PhoneType type = Stamina::PhonoLogic::phoneNone);
private:
Stamina::CriticalSection _cs;
};
extern NumbersMap numbersMap;
void init();
void start();
void finish();
void connect(bool byUser);
void disconnect();
void showWindow();
bool isCalling(tCntId cnt);
void makeCall(tCntId cnt, Stamina::PhonoLogic::PhoneType type = Stamina::PhonoLogic::phoneNone);
void newCall();
void calibrateSound();
void createAccount(HWND parent);
void updateVersion(Stamina::Version old);
};