holger krekel
8518d8f456
rustify imex and friends
2019-09-25 23:46:44 +02:00
holger krekel
42dd600e0c
more rustifications
2019-09-22 23:39:16 +02:00
dignifiedquire
987f12740e
refactor(message): remove unsafe and c types from the Message api
2019-09-21 16:37:19 +02:00
dignifiedquire
c0747bf68d
refactor: use enum for system messages
2019-09-16 22:58:10 +02:00
dignifiedquire
5486ac5b9f
refacor: use an enum for events
2019-09-15 23:40:08 +02:00
Alexander Krotov
d1b762af04
Make DC_LP_* constants public
2019-09-14 13:14:18 +03:00
holger krekel
650d8c45ec
fix test, and cleanup according profile-image API
2019-09-09 18:07:32 +02:00
holger krekel
383d8980d6
add profile image API to python, tests, Rust fixes/cleanups
2019-09-09 18:07:32 +02:00
dignifiedquire
00e5ddd6f0
make enum reading from the db more robust
2019-09-08 11:29:40 +02:00
holger krekel
b2fafeff19
use some BOB and VC constants instead of raw numbers
2019-09-05 22:55:25 +02:00
jikstra
5ff472dae0
Implement helper method to easily check if a bit flag is inside
...
listflags. Make Contact::get_all use it
Add method documentation and tests
2019-09-05 18:02:50 +02:00
Alexander Krotov
b5a9cc1380
Convert DC_*_ID_* constants to u32
2019-09-01 23:41:05 +03:00
Simon Laux
491826556b
renaming dc_configure to configure
...
and renaming the autoconfigure modules
2019-08-19 19:03:46 +02:00
dignifiedquire
886262539a
refactor: save lot implementation and follow up refactors
...
rewrote qr code to match the now safe lot
2019-08-19 08:06:54 +02:00
dignifiedquire
c8ce099f22
refactor(chat): improve field types by using enums and bools
2019-08-17 11:29:08 +02:00
Dmitry Bogatov
7c7a1b64df
Remove dead code
2019-08-16 04:46:20 +00:00
Dmitry Bogatov
ea661896a1
Do not export more than strictly necessary
2019-08-16 04:46:20 +00:00
dignifiedquire
99aabef7f3
feat: load package version during build
...
This removes the duplication of the version string between the `Cargo.toml` and `constants.rs`
2019-08-14 10:35:32 +02:00
Dmitry Bogatov
8342b29618
Fix some clippy warnings
2019-08-14 01:45:39 +02:00
Friedel Ziegelmayer
ed237c8d25
refactor(receive_imf): first pass at some more sanity
2019-08-13 17:58:32 +02:00
Dmitry Bogatov
ed66f36cb5
Implement procedural macro to derive {To,From}Sql traits
...
With this macro it is possible to #[derive(ToSql, FromSql)] for enums, that do
not contain data (C-style).
2019-08-10 17:52:48 +00:00
Dmitry Bogatov
24b025f573
Replace DC_MOVE_* constants with enum
2019-08-09 21:51:33 +02:00
Simon Laux
3d83409375
fix own messages displayed as noMsgs in summary
2019-08-08 08:48:58 +02:00
Dmitry Bogatov
3358d09148
Derive and use Display trait for Viewtype
2019-08-01 06:05:56 +00:00
Dmitry Bogatov
c04c8ff103
Introduce new enum: Viewtype
...
With this change, kind of message is represented by value of enum
`Viewtype' instead of raw libc::c_int, providing more type safety. This
enum replaces DC_MSG_* constants. The only way to create `Viewtype' from
libc::c_int is smart constructor.
With this change, functions `dc_get_chat_media' and `dc_get_next_media' became
less forgiving about invalid message type arguments. Previously, invalid
message types were implicitly interpreted as 0 (Viewtype::Unknown). Now,
function calls with invalid message type arguments are rejected (error code
returned) on FFI boundary.
Additionally, when `Viewtype' is read from database, it is checked to have
sensible value.
No tests assumed forgiving behaviour.
2019-08-01 06:05:56 +00:00
Dmitry Bogatov
669ed0e0df
Override non_camel_case_types warning on per-declaration basis
2019-07-28 22:44:21 +02:00
holger krekel
9a9b49f8f0
- remove current_block logic from dc_chat.rs with the "OK_TO_CONTINUE"
...
pattern -- re-indentation will come after this commit with a pure application of "cargo fmt"
- bring back comment from C code
- make some path helpers return bool
2019-07-25 21:51:39 +02:00
holger krekel
9d87f2f10b
carefully replace msg state and type numbers with DC_MSG_* and DC_STATE_* constants and also declare them as i32 to avoid tons of casts
2019-07-25 09:45:04 +02:00
Alexander Krotov
4a0b2e68c8
Add DC_CMD_* constants
2019-07-22 00:45:17 +02:00
Alexander Krotov
686678c96c
Spellcheck
2019-07-21 21:40:19 +02:00
dignifiedquire
0c5015d92b
chore: release v1.0.0-alpha.3
2019-07-18 00:34:46 +02:00
holger krekel
6c4b9e79c7
convert created_db_entries into a Rust vector instead of using low-level carray
2019-07-09 19:31:51 +02:00
Floris Bruynooghe
6ccc75b1ed
Arbitrarily bump the version
...
This allows me to create a new tag and play wity building flatpak
builds for this tag.
2019-06-30 19:48:44 +02:00
Lars-Magnus Skog
18c0d9f83b
chore: update version to 1.0.0-alpha.0
2019-06-07 13:36:15 +02:00
Friedel Ziegelmayer
f0cfcef864
refactor: use reqwest to handle http-get requests
...
Closes #82
2019-05-27 09:06:55 +02:00
dignifiedquire
a95d6f85cc
start save implementation of save keys
2019-05-14 00:44:59 +02:00
dignifiedquire
fdd870286e
refactor: move aheader to safe rust
2019-05-12 23:11:13 +02:00
dignifiedquire
29a9a408ef
remove unused types
2019-05-06 10:59:24 +02:00
dignifiedquire
f559c92008
more imap functionality
2019-05-05 00:15:45 +02:00
dignifiedquire
7c50702221
feat: port commandline tests
2019-04-28 00:14:23 +03:00
dignifiedquire
4cf5903d60
feat: update latest deltachat-core 0.43.0
2019-04-27 17:35:49 +03:00
dignifiedquire
2d057cba56
improve info string and version setting
2019-04-27 15:55:27 +03:00
dignifiedquire
8a99151252
refactor event callback and handle http_get in tests
2019-04-27 15:34:11 +03:00
dignifiedquire
9a1fcc745e
constants and basic header generation
2019-04-27 00:33:40 +03:00