~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/src/history/history.h

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (1.1.11)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20140128182336-3xenud1kbnwmf3mz
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
 
2
 *  Copyright (C) 2004-2013 Savoir-Faire Linux Inc.
3
3
 *
4
4
 *  Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
5
5
 *  Author: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
34
34
#define HISTORY_
35
35
 
36
36
#include "historyitem.h"
37
 
#include <pthread.h>
 
37
#include <mutex>
38
38
#include <vector>
39
39
 
40
40
class Call;
45
45
 
46
46
    public:
47
47
        History();
48
 
        ~History();
49
 
 
50
48
        /** Load history from file */
51
49
        bool load(int limit);
52
50
 
66
64
 
67
65
        void addCall(Call *call, int limit);
68
66
        void clear();
 
67
        void setPath(const std::string &path);
69
68
    private:
70
69
        /* Mutex to protect the history items */
71
 
        pthread_mutex_t historyItemsMutex_;
 
70
        std::mutex historyItemsMutex_;
72
71
 
73
 
        void setPath(const std::string &path);
74
72
        /* If no path has been set, this will initialize path to a
75
73
         * system-dependent location */
76
74
        void ensurePath();