summaryrefslogtreecommitdiff
path: root/src/user_share-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/user_share-private.h')
-rw-r--r--src/user_share-private.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/user_share-private.h b/src/user_share-private.h
new file mode 100644
index 0000000..4ce936c
--- /dev/null
+++ b/src/user_share-private.h
@@ -0,0 +1,57 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
+
+/*
+ * Copyright (C) 2004-2008 Red Hat, Inc.
+ *
+ * Caja 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.
+ *
+ * Caja 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.
+ *
+ * Authors: Alexander Larsson <[email protected]>
+ * Bastien Nocera <[email protected]>
+ *
+ */
+
+#ifndef _USER_SHARE_PRIVATE_H_
+#define _USER_SHARE_PRIVATE_H_
+
+#define FILE_SHARING_DIR "/desktop/mate/file_sharing"
+#define FILE_SHARING_ENABLED FILE_SHARING_DIR "/enabled"
+#define FILE_SHARING_BLUETOOTH_ENABLED FILE_SHARING_DIR "/bluetooth_enabled"
+#define FILE_SHARING_BLUETOOTH_OBEXPUSH_ENABLED FILE_SHARING_DIR "/bluetooth_obexpush_enabled"
+
+#define FILE_SHARING_REQUIRE_PASSWORD FILE_SHARING_DIR "/require_password"
+#define FILE_SHARING_BLUETOOTH_ALLOW_WRITE FILE_SHARING_DIR "/bluetooth_allow_write"
+#define FILE_SHARING_BLUETOOTH_REQUIRE_PAIRING FILE_SHARING_DIR "/bluetooth_require_pairing"
+#define FILE_SHARING_BLUETOOTH_OBEXPUSH_ACCEPT_FILES FILE_SHARING_DIR "/bluetooth_accept_files"
+#define FILE_SHARING_BLUETOOTH_OBEXPUSH_NOTIFY FILE_SHARING_DIR "/bluetooth_notify"
+
+typedef enum {
+ PASSWORD_NEVER,
+ PASSWORD_ON_WRITE,
+ PASSWORD_ALWAYS
+} PasswordSetting;
+
+typedef enum {
+ ACCEPT_ALWAYS,
+ ACCEPT_BONDED,
+ ACCEPT_ASK
+} AcceptSetting;
+
+const char *password_string_from_setting (PasswordSetting setting);
+PasswordSetting password_setting_from_string (const char *str);
+
+const char *accept_string_from_setting (AcceptSetting setting);
+AcceptSetting accept_setting_from_string (const char *str);
+
+#endif /* _USER_SHARE_PRIVATE_H_ */