This file is indexed.

/usr/share/doc/libgammu-dev/testing/dummy-driver.rst is in libgammu-dev 1.31.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.. _dummy-driver:

Dummy Driver
============

.. versionadded:: 1.22.93

The ``dummy`` driver in Gammu emulates all operations on filesystem. It is
used by :doc:`testsuite`, but it is also very helpful for application
developers, because they can test the functionality without using real phone
and avoiding risk of corrupting data in the phone.

Filesystem structure
--------------------

The dummy driver emulates all phone functionality on filesystem. The
:config:option:`Device` configuration directive sets top level directory,
where all data are stored.

This directory contains file :file:`operations.log`, where are logged
operations which do not modify any data in the dummy phone (eg. sending
message).

Messages
++++++++

Messages are stored in :file:`sms/<FOLDER>` directories (``<FOLDER>`` is in
range 1-5) in Gammu native smsbackup format.

Phonebook
+++++++++

Phonebook (and calls registers) are stored in :file:`pbk/<MEMORY>` (``<MEMORY>``
is type of memory like ``ME`` or ``SM``) directories in vCard format.

Notes
+++++

Notes are stored in :file:`note` directory in vNote format.

Calendar
++++++++

Calendar entries are stored in :file:`calendar` directory in vCalendar format.

Todo
++++

Todo entries are stored in :file:`todo` directory in vCalendar format.

Filesystem
++++++++++

Filesystem is stored in :file:`fs` directory. You can create another
subdirectories there.

Other features
--------------

By specifying :config:option:`Features` you can configure some specific behavior:

``DISABLE_GETNEXT``
    Makes the dummy driver fail all GetNext* calls as not supported (with
    exception of GetNextSMS* and GetNextFile*).
``DISABLE_GETNEXTSMS``
    Makes the dummy driver fail all GetNextSMS* calls as not supported.

Examples
--------

To use dummy driver, you need something like following in :file:`~/.gammurc`:

.. code-block:: ini

    [gammu]
    model = dummy
    connection = none
    device = /path/to/directory/

For disabling GetNext* functions within dummy driver, you need something like following in :file:`~/.gammurc`:

.. code-block:: ini

    [gammu]
    model = dummy
    connection = none
    features = DISABLE_GETNEXT
    device = /path/to/directory/