managerimpl.h 16.3 KB
Newer Older
jpbl's avatar
jpbl committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 *  Copyright (C) 2004-2005 Savoir-Faire Linux inc.
 *  Author: Yan Morin <yan.morin@savoirfairelinux.com>
 *  Author: Laurielle Lea <laurielle.lea@savoirfairelinux.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef __MANAGER_H__
#define __MANAGER_H__

yanmorin's avatar
   
yanmorin committed
24
25
//#define TEST

jpbl's avatar
jpbl committed
26
27
#include <string>
#include <vector>
yanmorin's avatar
   
yanmorin committed
28
#include <set>
yanmorin's avatar
   
yanmorin committed
29
#include <map>
jpbl's avatar
jpbl committed
30
#include <cc++/thread.h>
31
#include "dbus/dbusmanager.h"
jpbl's avatar
jpbl committed
32
33
34
35

#include "stund/stun.h"
#include "observer.h"
#include "config/config.h"
yanmorin's avatar
   
yanmorin committed
36

yanmorin's avatar
   
yanmorin committed
37
#include "account.h"
yanmorin's avatar
   
yanmorin committed
38
#include "call.h"
jpbl's avatar
jpbl committed
39
40
41
42
43
44

#include "audio/tonelist.h" // for Tone::TONEID declaration
#include "audio/audiofile.h"
#include "audio/dtmf.h"
#include "audio/codecDescriptor.h"

45

jpbl's avatar
jpbl committed
46
47
48
49
50
class AudioLayer;
class CodecDescriptor;
class GuiFramework;
class TelephoneTone;
class VoIPLink;
yanmorin's avatar
   
yanmorin committed
51

jpbl's avatar
jpbl committed
52
53
54
55
#ifdef USE_ZEROCONF
class DNSService;
#endif

yanmorin's avatar
   
yanmorin committed
56
57
/**
 * Define a type for a AccountMap container
jpbl's avatar
jpbl committed
58
 */
yanmorin's avatar
   
yanmorin committed
59
60
typedef std::map<AccountID, Account*> AccountMap;
 
yanmorin's avatar
   
yanmorin committed
61
62
63
/**
 * Define a type for a CallID to AccountID Map inside ManagerImpl
 */
yanmorin's avatar
   
yanmorin committed
64
typedef std::map<CallID, AccountID> CallAccountMap;
yanmorin's avatar
   
yanmorin committed
65
66

/**
yanmorin's avatar
   
yanmorin committed
67
 * Define a type for CallID vector (waiting list, incoming not answered)
yanmorin's avatar
   
yanmorin committed
68
 */
yanmorin's avatar
   
yanmorin committed
69
70
typedef std::set<CallID> CallIDSet;

jpbl's avatar
jpbl committed
71
72
73
74
75
/**
 * To send multiple string
 */
typedef std::list<std::string> TokenList;

yanmorin's avatar
   
yanmorin committed
76
77
78
/**
 * Manager (controller) of sflphone daemon
 */
jpbl's avatar
jpbl committed
79
80
81
82
83
class ManagerImpl {
public:
  ManagerImpl (void);
  ~ManagerImpl (void);

yanmorin's avatar
   
yanmorin committed
84
  /**
85
86
87
   * Initialisation of thread (sound) and map.
   *
   * Init a new VoIPLink, audio codec and audio driver
yanmorin's avatar
   
yanmorin committed
88
   */
jpbl's avatar
jpbl committed
89
  void init (void);
yanmorin's avatar
   
yanmorin committed
90
91

  /**
92
   * Terminate all thread (sound, link) and unload AccountMap
yanmorin's avatar
   
yanmorin committed
93
   */
jpbl's avatar
jpbl committed
94
95
  void terminate (void);

yanmorin's avatar
   
yanmorin committed
96
  /**
97
98
   * Set user interface manaager.
   * @param man The DBUS interface implementation
yanmorin's avatar
   
yanmorin committed
99
   */
100
  void setDBusManager (DBusManagerImpl* man) { _dbus = man; }
jpbl's avatar
jpbl committed
101

102
103
104
105
106
  /**
   * Accessor to audiodriver.
   *
   * it's multi-thread and use mutex internally
   */
107
  AudioLayer* getAudioDriver(void) const { return _audiodriver; }
jpbl's avatar
jpbl committed
108

yanmorin's avatar
   
yanmorin committed
109
110
111
  /**
   * Get a descriptor map of codec available
   */
jpbl's avatar
jpbl committed
112
113
  CodecDescriptorMap& getCodecDescriptorMap(void) {return _codecDescriptorMap;}

yanmorin's avatar
   
yanmorin committed
114
  /**
jpbl's avatar
jpbl committed
115
116
   * Functions which occur with a user's action
   */
yanmorin's avatar
   
yanmorin committed
117
118
119
120
121
122
123
  bool outgoingCall(const AccountID& accountId, const CallID& id, const std::string& to);
  bool answerCall(const CallID& id);
  bool hangupCall(const CallID& id);
  bool cancelCall(const CallID& id);
  bool onHoldCall(const CallID& id);
  bool offHoldCall(const CallID& id);
  bool transferCall(const CallID& id, const std::string& to);
jpbl's avatar
jpbl committed
124
125
  void mute();
  void unmute();
yanmorin's avatar
   
yanmorin committed
126
  bool refuseCall(const CallID& id);
jpbl's avatar
jpbl committed
127

128
  /** Save config to file */
jpbl's avatar
jpbl committed
129
  bool saveConfig (void);
130

yanmorin's avatar
   
yanmorin committed
131
  /**
132
133
134
135
136
137
138
   * Send registration information (shake hands) for a specific AccountID
   *
   * @param accountId Account to register
   * @return true if sendRegister was called without failure, else return false
   */
  bool registerAccount(const AccountID& accountId);

yanmorin's avatar
   
yanmorin committed
139
  /**
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
   * Send unregistration for a specific account. If the protocol
   * doesn't need to send anything, then the state of the account
   * will be set to 'Unregistered', and related objects destroyed.
   *
   * @param accountId Account to unregister
   * @return true if the unregister method is send correctly
   */
  bool unregisterAccount(const AccountID& accountId);

  /**
   * Send registration to all enabled accounts
   * 
   * @return false if exosip or the network checking fails
   */
  bool initRegisterAccounts();

  /**
   * True if we tried to register Once
   */
  bool _hasTriedToRegister;

jpbl's avatar
jpbl committed
161

162
163
164
  /**
   * Undocumented
   */
yanmorin's avatar
   
yanmorin committed
165
  bool sendTextMessage(const AccountID& accountId, const std::string& to, const std::string& message);
jpbl's avatar
jpbl committed
166
	
yanmorin's avatar
   
yanmorin committed
167
  /*
jpbl's avatar
jpbl committed
168
169
170
171
172
   * Handle choice of the DTMF-send-way
   *
   * @param   id: callid of the line.
   * @param   code: pressed key.
   */
yanmorin's avatar
   
yanmorin committed
173
174
  bool sendDtmf(const CallID& id, char code);
  bool playDtmf(char code);
jpbl's avatar
jpbl committed
175
  bool playTone ();
176
  void stopTone(bool stopAudio/*=true*/);
yanmorin's avatar
   
yanmorin committed
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195

  // From links
  /**
   * When receiving a new incoming call, add it to the callaccount map
   * and notify user
   * @param call A call pointer
   * @param accountid an account id
   * @return true if the call was added correctly
   */
  bool incomingCall(Call* call, const AccountID& accountId);
  void peerAnsweredCall(const CallID& id);
  void peerRingingCall(const CallID& id);
  void peerHungupCall(const CallID& id);
  void incomingMessage(const AccountID& accountId, const std::string& message);

  void displayTextMessage (const CallID& id, const std::string& message);
  void displayErrorText (const CallID& id, const std::string& message);
  void displayError(const std::string& error);
  void displayStatus(const std::string& status);
jpbl's avatar
jpbl committed
196
197
  void displayConfigError(const std::string& message);

yanmorin's avatar
   
yanmorin committed
198
199
  void startVoiceMessageNotification(const AccountID& accountId, const std::string& nb_msg);
  void stopVoiceMessageNotification(const AccountID& accountId);
jpbl's avatar
jpbl committed
200

yanmorin's avatar
   
yanmorin committed
201
202
203
204
  /** Notify the user that registration succeeded  */
  void registrationSucceed(const AccountID& accountId);
  /** Notify the user that registration succeeded  */
  void registrationFailed(const AccountID& accountId);
jpbl's avatar
jpbl committed
205
206

  // configuration function requests
207
208
209
210
211
212
213
214

  /**
   * Start events thread. This function actually only calls the private
   * initRegisterVoIPLink().
   *
   * This function should definitively be renamed!
   *
   * @todo Receive account name (???)
215
216
   *
   * DEPRECATED
217
   */
218
  //bool getEvents();
yanmorin's avatar
   
yanmorin committed
219
220

  //
jpbl's avatar
jpbl committed
221
222
223
224
  bool getZeroconf(const std::string& sequenceId);
  bool attachZeroconfEvents(const std::string& sequenceId, Pattern::Observer& observer);
  bool detachZeroconfEvents(Pattern::Observer& observer);
  bool getCallStatus(const std::string& sequenceId);
225

226
  /** 
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
227
228
   * Get account list 
   * @return A list of accoundIDs
229
   */
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
230
  std::vector< std::string >  getAccountList();
231
232
233
234

  /**
   * Retrieve details about a given account
   */
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
235
  std::map< std::string, std::string > getAccountDetails(const AccountID& accountID);
236
237
238

  /**
   * Save the details of an existing account, given the account ID
239
240
241
   *
   * This will load the configuration map with the given data.
   * It will also register/unregister links where the 'Enabled' switched.
242
   */
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
243
244
  void setAccountDetails( const ::DBus::String& accountID, 
                   const std::map< ::DBus::String, ::DBus::String >& details );
245
246
247
248
249
250
251
252
253
254

  /**
   * Add a new account, and give it a new account ID automatically
   */
  void addAccount(const std::map< ::DBus::String, ::DBus::String >& details);

  /**
   * Delete an existing account, unregister VoIPLink associated, and
   * purge from configuration.
   */
Pierre-Luc Beaudoin's avatar
Pierre-Luc Beaudoin committed
255
  void removeAccount(const AccountID& accountID);
256
257
258
259
260
261
	
 /*
  * Set an account as default
  */
  void setDefaultAccount(const AccountID& accountID);

262

jpbl's avatar
jpbl committed
263
264
265
266
267
268
  bool getConfigAll(const std::string& sequenceId);
  bool getConfig(const std::string& section, const std::string& name, TokenList& arg);
  bool setConfig(const std::string& section, const std::string& name, const std::string& value);
  bool setConfig(const std::string& section, const std::string& name, int value);
  bool getConfigList(const std::string& sequenceId, const std::string& name);
  void selectAudioDriver(void);
269

yanmorin's avatar
   
yanmorin committed
270
271
272
273
274
275
276
  /** 
   * Set Audio Driver with switchName == audiodriver 
   * @param sflphoned internal parameter to change
   * @param message to return to the user
   * @return true if everything is ok
   */
  bool setSwitch(const std::string& switchName, std::string& message);
jpbl's avatar
jpbl committed
277
278
279

  // configuration function for extern
  // throw an Conf::ConfigTreeItemException if not found
yanmorin's avatar
   
yanmorin committed
280
  /** Get a int from the config tree */
jpbl's avatar
jpbl committed
281
  int getConfigInt(const std::string& section, const std::string& name);
yanmorin's avatar
   
yanmorin committed
282
  /** Get a string from the config tree */
jpbl's avatar
jpbl committed
283
284
  std::string getConfigString(const std::string& section, const std::string& name);

yanmorin's avatar
   
yanmorin committed
285
	/**
jpbl's avatar
jpbl committed
286
287
288
289
290
	 * Handle audio sounds heard by a caller while they wait for their 
	 * connection to a called party to be completed.
	 */
  void ringback ();

yanmorin's avatar
   
yanmorin committed
291
	/**
jpbl's avatar
jpbl committed
292
293
294
295
	 * Handle played music when an incoming call occurs
	 */
  void ringtone ();
  void congestion ();
yanmorin's avatar
   
yanmorin committed
296
297
  void callBusy(const CallID& id);
  void callFailure(const CallID& id);
jpbl's avatar
jpbl committed
298

yanmorin's avatar
   
yanmorin committed
299
  /** @return 0 if no tone (init before calling this function) */
jpbl's avatar
jpbl committed
300
  AudioLoop* getTelephoneTone();
yanmorin's avatar
   
yanmorin committed
301
  /** @return 0 if the wav is stopped */
jpbl's avatar
jpbl committed
302
303
304
305
306
307
308
  AudioLoop* getTelephoneFile();

  /**
   * @return true is there is one or many incoming call waiting
   * new call, not anwsered or refused
   */
  bool incomingCallWaiting(void);
yanmorin's avatar
   
yanmorin committed
309
	/**
jpbl's avatar
jpbl committed
310
311
	 * Notification of incoming call when you are already busy
	 */
yanmorin's avatar
   
yanmorin committed
312
313
  void notificationIncomingCall(void);

jpbl's avatar
jpbl committed
314
315
316
317
318
319
320
321
322
323
324

  /*
   * Inline functions to manage volume control
   * Read by main thread and AudioLayer thread
   * Write by main thread only
   */
  unsigned short getSpkrVolume(void) { return _spkr_volume; }
  void setSpkrVolume(unsigned short spkr_vol) {  _spkr_volume = spkr_vol; }
  unsigned short getMicVolume(void) {  return _mic_volume;  }
  void setMicVolume(unsigned short mic_vol) {    _mic_volume = mic_vol;   }

yanmorin's avatar
   
yanmorin committed
325
  // Manage information about firewall
jpbl's avatar
jpbl committed
326
  /*
yanmorin's avatar
   
yanmorin committed
327
328
329
330
   * Get information about firewall 
   * @param  stunSvrAddr: stun server
   * @param  port         port number to open to test the connection
   * @return true if the connection is successful
jpbl's avatar
jpbl committed
331
   */
yanmorin's avatar
   
yanmorin committed
332
333
  bool getStunInfo(StunAddress4& stunSvrAddr, int port);

yanmorin's avatar
   
yanmorin committed
334
335
  inline int getFirewallPort(void) 		{ return _firewallPort; }
  inline void setFirewallPort(int port) 	{ _firewallPort = port; }
jpbl's avatar
jpbl committed
336
337
  inline std::string getFirewallAddress (void) 	{ return _firewallAddr; }

yanmorin's avatar
   
yanmorin committed
338
339
340
341
342
  /**
   * If you are behind a NAT, you have to use STUN server, specified in 
   * STUN configuration(you can change this one by default) to give you an 
   * public IP address and assign a port number.
   * Note: Set firewall port/address retreive
yanmorin's avatar
   
yanmorin committed
343
344
   * @param svr  : serveur on which to send request
   * @param port : on which port we want to listen to
yanmorin's avatar
   
yanmorin committed
345
346
347
   * 
   * Return true if we are behind a NAT (without error)
   */
yanmorin's avatar
   
yanmorin committed
348
  bool behindNat(const std::string& svr, int port);
yanmorin's avatar
   
yanmorin committed
349

350
351
352
353
354
355
  /**
   * Init default values for the different fields in the config file.
   * Fills the local _config (Conf::ConfigTree) with the default contents.
   *
   * Called in main.cpp, just before Manager::init().
   */
jpbl's avatar
jpbl committed
356
  void initConfigFile (void);
yanmorin's avatar
   
yanmorin committed
357
358
359
360

  /**
   * Tell if the setup was already loaded
   */
jpbl's avatar
jpbl committed
361
362
  bool hasLoadedSetup() { return _setupLoaded; }
	
yanmorin's avatar
   
yanmorin committed
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
  /** Return a new random callid that is not present in the list
   * @return a brand new callid
   */
  CallID getNewCallID();

  /**
   * Get the current call id
   * @return the call id or ""
   */
  const CallID& getCurrentCallId();

  /**
   * Check if a call is the current one
   * @param id the new callid
   * @return if the id is the current call
   */
  bool isCurrentCall(const CallID& callId);

jpbl's avatar
jpbl committed
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
private:
 /**
  * Create .PROGNAME directory in home user and create 
  * configuration tree from the settings file if this file exists.
  *
  * @return	0 if creating file failed
  *			1 if config-file exists
  *			2 if file doesn't exist yet.
  */
  int createSettingsPath (void);

  /*
   * Initialize audiocodec with config setting
   */
  void initAudioCodec(void);
	
  /*
   * Initialize audiodriver
   */
  void initAudioDriver(void);

  /*
   * Initialize zeroconf module and scanning
   */
  void initZeroconf(void);
  
  /*
   * Init the Gui interface (after setting it) inside setGui
   */
  void initGui();

  /*
   * Init the volume for speakers/micro from 0 to 100 value
   */ 
  void initVolume();

  /**
   * Configuration
   */
  bool getDirListing(const std::string& sequenceId, const std::string& path, int *nbFile);
  bool getAudioDeviceList(const std::string& sequenceId, int ioDeviceMask);
  Conf::ConfigTree _config;
  bool getCountryTones(const std::string& sequenceId);
  void sendCountryTone(const std::string& sequenceId, int index, const std::string& name);
425
426
  

jpbl's avatar
jpbl committed
427

yanmorin's avatar
   
yanmorin committed
428
429
430
431
432
433
434
435
436
  /**
   * Tell if there is a current call processed
   * @return true if there is a current call
   */
  bool hasCurrentCall();

  /**
   * Switch of current call id
   * @param id the new callid
jpbl's avatar
jpbl committed
437
   */
yanmorin's avatar
   
yanmorin committed
438
439
440
441
442
443
444
445
  void switchCall(const CallID& id);

  /** Current Call ID */
  CallID _currentCallId2;

  /** Protected current call access */
  ost::Mutex _currentCallMutex;

jpbl's avatar
jpbl committed
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461

  /*
   * Play one tone
   * @return false if the driver is uninitialize
   */
  bool playATone(Tone::TONEID toneId);
  
  //
  // Multithread variable with extern accessor and change only inside the main thread
  //
  /** Vector of CodecDescriptor */
  CodecDescriptor* _codecBuilder;

  //
  // Sound variable
  //
462
  AudioLayer* _audiodriver;
jpbl's avatar
jpbl committed
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481

  // Main thread
  DTMF* _dtmfKey;

  // map of codec (for configlist request)
  CodecDescriptorMap _codecDescriptorMap;

  /////////////////////
  // Protected by Mutex
  /////////////////////
  ost::Mutex _toneMutex;
  TelephoneTone* _telephoneTone;
  AudioFile _audiofile;

  // To handle volume control
  short _spkr_volume;
  short _mic_volume;
  short _mic_volume_before_mute;
  // End of sound variable
yanmorin's avatar
   
yanmorin committed
482

jpbl's avatar
jpbl committed
483
484
485
486
487
488
489
490
491

  // Multithread variable (protected by _mutex)
  // 
  /** Mutex to protect access to code section */
  ost::Mutex _mutex;

  //
  // Multithread variable (non protected)
  //
492
  DBusManagerImpl * _dbus;
jpbl's avatar
jpbl committed
493

yanmorin's avatar
   
yanmorin committed
494
495
496
497
498
499
  /** Waiting Call Vectors */
  CallIDSet _waitingCall;
  /** Protect waiting call list, access by many voip/audio threads */
  ost::Mutex _waitingCallMutex;
  /** Number of waiting call, synchronize with waitingcall callidvector */
  unsigned int _nbIncomingWaitingCall;
jpbl's avatar
jpbl committed
500
  /**
yanmorin's avatar
   
yanmorin committed
501
502
   * Add incoming callid to the waiting list
   * @param id CallID to add
jpbl's avatar
jpbl committed
503
   */
yanmorin's avatar
   
yanmorin committed
504
505
506
507
508
509
510
511
512
513
514
515
  void addWaitingCall(const CallID& id);
  /**
   * Remove incoming callid to the waiting list
   * @param id CallID to remove
   */
  void removeWaitingCall(const CallID& id);
  /**
   * Tell if a call is waiting and should be remove
   * @param id CallID to test
   * @return true if the call is waiting
   */
  bool isWaitingCall(const CallID& id);
jpbl's avatar
jpbl committed
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536

	/**
   * Path of the ConfigFile 
	 */
  std::string 	_path;
  int _exist;
  int _setupLoaded;

	// To handle firewall
  int _firewallPort;
  std::string _firewallAddr;

  // tell if we have zeroconf is enabled
  int _hasZeroconf;

#ifdef USE_ZEROCONF
  // DNSService contain every zeroconf services
  //  configuration detected on the network
  DNSService *_DNSService;
#endif

yanmorin's avatar
   
yanmorin committed
537
538
539
540
541
542
543
544
545
546
547
  /** Map to associate a CallID to the good account */
  CallAccountMap _callAccountMap;
  /** Mutex to lock the call account map (main thread + voiplink thread) */
  ost::Mutex _callAccountMapMutex;

  /** Associate a new CallID to a AccountID
   * Protected by mutex
   * @param callID the new CallID not in the list yet
   * @param accountID the known accountID present in accountMap
   * @return true if the new association is create
   */
yanmorin's avatar
   
yanmorin committed
548
  bool associateCallToAccount(const CallID& callID, const AccountID& accountID);
yanmorin's avatar
   
yanmorin committed
549
550
551
552
553
554

  /** Return the AccountID from a CallID
   * Protected by mutex
   * @param callID the CallID in the list
   * @return the accountID associated or "" if the callID is not found
   */
yanmorin's avatar
   
yanmorin committed
555
  AccountID getAccountFromCall(const CallID& callID);
yanmorin's avatar
   
yanmorin committed
556
557
558
559
560
561

  /** Remove a CallID/AccountID association
   * Protected by mutex
   * @param callID the CallID to remove
   * @return true if association is removed
   */
yanmorin's avatar
   
yanmorin committed
562
  bool removeCallAccount(const CallID& callID);
yanmorin's avatar
   
yanmorin committed
563

yanmorin's avatar
   
yanmorin committed
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
  /** Contains a list of account (sip, aix, etc) and their respective voiplink/calls */
  AccountMap _accountMap;

  /**
   * Load the account from configuration
   * @return number of account
   */
  short loadAccountMap();

  /**
   * Unload the account (delete them)
   */
  void unloadAccountMap();

  /**
   * Tell if an account exists
   * @param accountID account ID check
   */
yanmorin's avatar
   
yanmorin committed
582
  bool accountExists(const AccountID& accountID);
yanmorin's avatar
   
yanmorin committed
583
584
585
586
587
588

  /**
   * Get an account pointer
   * @param accountID account ID to get
   * @param the account pointer or 0
   */
yanmorin's avatar
   
yanmorin committed
589
590
591
592
593
594
595
596
  Account* getAccount(const AccountID& accountID);

  /**
   * Get the voip link from the account pointer
   * @param accountID account ID to get
   * @param the voip link from the account pointer or 0
   */
  VoIPLink* getAccountLink(const AccountID& accountID);
yanmorin's avatar
   
yanmorin committed
597

yanmorin's avatar
   
yanmorin committed
598

yanmorin's avatar
   
yanmorin committed
599
600
  #ifdef TEST
  bool testCallAccountMap();
yanmorin's avatar
   
yanmorin committed
601
  bool testAccountMap();
yanmorin's avatar
   
yanmorin committed
602
  #endif
yanmorin's avatar
   
yanmorin committed
603

jpbl's avatar
jpbl committed
604
605
606
};

#endif // __MANAGER_H__