@mcesystems/apple-kit 1.0.24 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +284 -250
  2. package/dist/index.js +156 -22
  3. package/dist/index.js.map +3 -3
  4. package/dist/index.mjs +156 -24
  5. package/dist/index.mjs.map +3 -3
  6. package/dist/resources/bin/darwin/idevice_id +0 -0
  7. package/dist/resources/bin/darwin/idevicedebug +0 -0
  8. package/dist/resources/bin/darwin/idevicediagnostics +0 -0
  9. package/dist/resources/bin/darwin/ideviceinfo +0 -0
  10. package/dist/resources/bin/darwin/ideviceinstaller +0 -0
  11. package/dist/resources/bin/darwin/idevicename +0 -0
  12. package/dist/resources/bin/darwin/idevicepair +0 -0
  13. package/dist/resources/bin/darwin/idevicescreenshot +0 -0
  14. package/dist/resources/bin/darwin/idevicesyslog +0 -0
  15. package/dist/resources/bin/darwin/iproxy +0 -0
  16. package/dist/resources/bin/darwin/libcrypto.3.dylib +0 -0
  17. package/dist/resources/bin/darwin/libimobiledevice-1.0.6.dylib +0 -0
  18. package/dist/resources/bin/darwin/libimobiledevice-glue-1.0.0.dylib +0 -0
  19. package/dist/resources/bin/darwin/liblzma.5.dylib +0 -0
  20. package/dist/resources/bin/darwin/libplist-2.0.4.dylib +0 -0
  21. package/dist/resources/bin/darwin/libssl.3.dylib +0 -0
  22. package/dist/resources/bin/darwin/libusbmuxd-2.0.7.dylib +0 -0
  23. package/dist/resources/bin/darwin/libzip.5.dylib +0 -0
  24. package/dist/resources/bin/darwin/libzstd.1.dylib +0 -0
  25. package/{resources → dist/resources}/licenses/LGPL-2.1.txt +33 -33
  26. package/dist/types/logic/actions/device.d.ts.map +1 -1
  27. package/dist/types/logic/actions/proxy.d.ts.map +1 -1
  28. package/dist/types/logic/appleDeviceKit.d.ts +1 -1
  29. package/dist/types/logic/appleDeviceKit.d.ts.map +1 -1
  30. package/package.json +7 -4
  31. package/scripts/README.md +209 -0
  32. package/scripts/build-windows.sh.template +134 -0
  33. package/scripts/export-resources.ts +444 -0
  34. package/dist/types/utils/portManager.d.ts +0 -68
  35. package/dist/types/utils/portManager.d.ts.map +0 -1
  36. package/resources/bin/windows/bz2.dll +0 -0
  37. package/resources/bin/windows/getopt.dll +0 -0
  38. package/resources/bin/windows/iconv-2.dll +0 -0
  39. package/resources/bin/windows/idevice_id.exe +0 -0
  40. package/resources/bin/windows/ideviceactivation.exe +0 -0
  41. package/resources/bin/windows/idevicedebug.exe +0 -0
  42. package/resources/bin/windows/ideviceinfo.exe +0 -0
  43. package/resources/bin/windows/ideviceinstaller.exe +0 -0
  44. package/resources/bin/windows/idevicepair.exe +0 -0
  45. package/resources/bin/windows/imobiledevice.dll +0 -0
  46. package/resources/bin/windows/iproxy.exe +0 -0
  47. package/resources/bin/windows/libcrypto-1_1-x64.dll +0 -0
  48. package/resources/bin/windows/libcurl.dll +0 -0
  49. package/resources/bin/windows/libideviceactivation-1.0.dll +0 -0
  50. package/resources/bin/windows/libimobiledevice-1.0.dll +0 -0
  51. package/resources/bin/windows/libimobiledevice-glue-1.0.dll +0 -0
  52. package/resources/bin/windows/libplist-2.0.dll +0 -0
  53. package/resources/bin/windows/libssl-1_1-x64.dll +0 -0
  54. package/resources/bin/windows/libusb-1.0.dll +0 -0
  55. package/resources/bin/windows/libusb0.dll +0 -0
  56. package/resources/bin/windows/libusbmuxd-2.0.dll +0 -0
  57. package/resources/bin/windows/libxml2.dll +0 -0
  58. package/resources/bin/windows/lzma.dll +0 -0
  59. package/resources/bin/windows/pcre.dll +0 -0
  60. package/resources/bin/windows/pcreposix.dll +0 -0
  61. package/resources/bin/windows/plist.dll +0 -0
  62. package/resources/bin/windows/pthreadVC3.dll +0 -0
  63. package/resources/bin/windows/readline.dll +0 -0
  64. package/resources/bin/windows/usbmuxd.dll +0 -0
  65. package/resources/bin/windows/usbmuxd.exe +0 -0
  66. package/resources/bin/windows/vcruntime140.dll +0 -0
  67. package/resources/bin/windows/zip.dll +0 -0
  68. package/resources/bin/windows/zlib1.dll +0 -0
  69. package/resources/lib/include/libimobiledevice/afc.h +0 -413
  70. package/resources/lib/include/libimobiledevice/bt_packet_logger.h +0 -156
  71. package/resources/lib/include/libimobiledevice/companion_proxy.h +0 -212
  72. package/resources/lib/include/libimobiledevice/debugserver.h +0 -272
  73. package/resources/lib/include/libimobiledevice/diagnostics_relay.h +0 -228
  74. package/resources/lib/include/libimobiledevice/file_relay.h +0 -166
  75. package/resources/lib/include/libimobiledevice/heartbeat.h +0 -137
  76. package/resources/lib/include/libimobiledevice/house_arrest.h +0 -180
  77. package/resources/lib/include/libimobiledevice/installation_proxy.h +0 -505
  78. package/resources/lib/include/libimobiledevice/libimobiledevice.h +0 -444
  79. package/resources/lib/include/libimobiledevice/lockdown.h +0 -577
  80. package/resources/lib/include/libimobiledevice/misagent.h +0 -168
  81. package/resources/lib/include/libimobiledevice/mobile_image_mounter.h +0 -275
  82. package/resources/lib/include/libimobiledevice/mobileactivation.h +0 -192
  83. package/resources/lib/include/libimobiledevice/mobilebackup.h +0 -246
  84. package/resources/lib/include/libimobiledevice/mobilebackup2.h +0 -214
  85. package/resources/lib/include/libimobiledevice/mobilesync.h +0 -359
  86. package/resources/lib/include/libimobiledevice/notification_proxy.h +0 -202
  87. package/resources/lib/include/libimobiledevice/ostrace.h +0 -198
  88. package/resources/lib/include/libimobiledevice/preboard.h +0 -187
  89. package/resources/lib/include/libimobiledevice/property_list_service.h +0 -184
  90. package/resources/lib/include/libimobiledevice/restore.h +0 -179
  91. package/resources/lib/include/libimobiledevice/reverse_proxy.h +0 -213
  92. package/resources/lib/include/libimobiledevice/sbservices.h +0 -175
  93. package/resources/lib/include/libimobiledevice/screenshotr.h +0 -118
  94. package/resources/lib/include/libimobiledevice/service.h +0 -202
  95. package/resources/lib/include/libimobiledevice/syslog_relay.h +0 -184
  96. package/resources/lib/include/libimobiledevice/webinspector.h +0 -137
  97. package/resources/lib/include/plist/Array.h +0 -80
  98. package/resources/lib/include/plist/Boolean.h +0 -48
  99. package/resources/lib/include/plist/Data.h +0 -50
  100. package/resources/lib/include/plist/Date.h +0 -54
  101. package/resources/lib/include/plist/Dictionary.h +0 -73
  102. package/resources/lib/include/plist/Integer.h +0 -54
  103. package/resources/lib/include/plist/Key.h +0 -49
  104. package/resources/lib/include/plist/Node.h +0 -57
  105. package/resources/lib/include/plist/Real.h +0 -48
  106. package/resources/lib/include/plist/String.h +0 -52
  107. package/resources/lib/include/plist/Structure.h +0 -62
  108. package/resources/lib/include/plist/Uid.h +0 -48
  109. package/resources/lib/include/plist/plist++.h +0 -39
  110. package/resources/lib/include/plist/plist.h +0 -1448
  111. package/resources/lib/libimobiledevice-1.0.dll +0 -0
  112. package/resources/lib/libimobiledevice-1.0.dll.a +0 -0
  113. package/resources/lib/libplist-2.0.dll +0 -0
  114. package/resources/lib/libplist-2.0.dll.a +0 -0
@@ -1,50 +0,0 @@
1
- /*
2
- * Data.h
3
- * Data node type for C++ binding
4
- *
5
- * Copyright (c) 2009 Jonathan Beck All Rights Reserved.
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef PLIST_DATA_H
23
- #define PLIST_DATA_H
24
-
25
- #include <plist/Node.h>
26
- #include <vector>
27
-
28
- namespace PList
29
- {
30
-
31
- class Data : public Node
32
- {
33
- public :
34
- Data(Node* parent = NULL);
35
- Data(plist_t node, Node* parent = NULL);
36
- Data(const Data& d);
37
- Data& operator=(const Data& b);
38
- Data(const std::vector<char>& buff);
39
- Data(const char* buff, uint64_t size);
40
- virtual ~Data();
41
-
42
- Node* Clone() const;
43
-
44
- void SetValue(const std::vector<char>& buff);
45
- std::vector<char> GetValue() const;
46
- };
47
-
48
- };
49
-
50
- #endif // PLIST_DATA_H
@@ -1,54 +0,0 @@
1
- /*
2
- * Date.h
3
- * Date node type for C++ binding
4
- *
5
- * Copyright (c) 2009 Jonathan Beck All Rights Reserved.
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef PLIST_DATE_H
23
- #define PLIST_DATE_H
24
-
25
- #include <plist/Node.h>
26
- #include <ctime>
27
- #ifdef _MSC_VER
28
- #include <winsock2.h>
29
- #else
30
- #include <sys/time.h>
31
- #endif
32
-
33
- namespace PList
34
- {
35
-
36
- class Date : public Node
37
- {
38
- public :
39
- Date(Node* parent = NULL);
40
- Date(plist_t node, Node* parent = NULL);
41
- Date(const Date& d);
42
- Date& operator=(const Date& d);
43
- Date(int64_t t);
44
- virtual ~Date();
45
-
46
- Node* Clone() const;
47
-
48
- void SetValue(int64_t t);
49
- int64_t GetValue() const;
50
- };
51
-
52
- };
53
-
54
- #endif // PLIST_DATE_H
@@ -1,73 +0,0 @@
1
- /*
2
- * Dictionary.h
3
- * Dictionary node type for C++ binding
4
- *
5
- * Copyright (c) 2009 Jonathan Beck All Rights Reserved.
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef PLIST_DICTIONARY_H
23
- #define PLIST_DICTIONARY_H
24
-
25
- #include <plist/Structure.h>
26
- #include <map>
27
- #include <string>
28
-
29
- namespace PList
30
- {
31
-
32
- class Dictionary : public Structure
33
- {
34
- public :
35
- Dictionary(Node* parent = NULL);
36
- Dictionary(plist_t node, Node* parent = NULL);
37
- Dictionary(const Dictionary& d);
38
- Dictionary& operator=(const Dictionary& d);
39
- virtual ~Dictionary();
40
-
41
- Node* Clone() const;
42
-
43
- typedef std::map<std::string,Node*>::iterator iterator;
44
- typedef std::map<std::string,Node*>::const_iterator const_iterator;
45
-
46
- Node* operator[](const std::string& key);
47
- iterator Begin();
48
- iterator begin();
49
- iterator End();
50
- iterator end();
51
- iterator Find(const std::string& key);
52
- const_iterator Begin() const;
53
- const_iterator begin() const;
54
- const_iterator End() const;
55
- const_iterator end() const;
56
- size_t size() const;
57
- const_iterator Find(const std::string& key) const;
58
- iterator Set(const std::string& key, const Node* node);
59
- iterator Set(const std::string& key, const Node& node);
60
- void Remove(Node* node);
61
- void Remove(const std::string& key);
62
- std::string GetNodeKey(Node* node);
63
- template <typename T> T* Get(const std::string& key) {
64
- return (T*)(_map[key]);
65
- }
66
-
67
- private :
68
- std::map<std::string,Node*> _map;
69
- };
70
-
71
- };
72
-
73
- #endif // PLIST_DICTIONARY_H
@@ -1,54 +0,0 @@
1
- /*
2
- * Integer.h
3
- * Integer node type for C++ binding
4
- *
5
- * Copyright (c) 2009 Jonathan Beck All Rights Reserved.
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef PLIST_INTEGER_H
23
- #define PLIST_INTEGER_H
24
-
25
- #include <plist/Node.h>
26
-
27
- namespace PList
28
- {
29
-
30
- class Integer : public Node
31
- {
32
- public :
33
- Integer(Node* parent = NULL);
34
- Integer(plist_t node, Node* parent = NULL);
35
- Integer(const Integer& i);
36
- Integer& operator=(const Integer& i);
37
- Integer(uint64_t i);
38
- Integer(int64_t i);
39
- virtual ~Integer();
40
-
41
- Node* Clone() const;
42
-
43
- void SetValue(int64_t i);
44
- void SetValue(uint64_t i);
45
- void SetUnsignedValue(uint64_t i);
46
- int64_t GetValue() const;
47
- uint64_t GetUnsignedValue() const;
48
-
49
- bool isNegative() const;
50
- };
51
-
52
- };
53
-
54
- #endif // PLIST_INTEGER_H
@@ -1,49 +0,0 @@
1
- /*
2
- * Key.h
3
- * Key node type for C++ binding
4
- *
5
- * Copyright (c) 2012 Nikias Bassen, All Rights Reserved.
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef PLIST_KEY_H
23
- #define PLIST_KEY_H
24
-
25
- #include <plist/Node.h>
26
- #include <string>
27
-
28
- namespace PList
29
- {
30
-
31
- class Key : public Node
32
- {
33
- public :
34
- Key(Node* parent = NULL);
35
- Key(plist_t node, Node* parent = NULL);
36
- Key(const Key& k);
37
- Key& operator=(const Key& k);
38
- Key(const std::string& s);
39
- virtual ~Key();
40
-
41
- Node* Clone() const;
42
-
43
- void SetValue(const std::string& s);
44
- std::string GetValue() const;
45
- };
46
-
47
- };
48
-
49
- #endif // PLIST_KEY_H
@@ -1,57 +0,0 @@
1
- /*
2
- * Node.h
3
- * Abstract node type for C++ binding
4
- *
5
- * Copyright (c) 2009 Jonathan Beck All Rights Reserved.
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef PLIST_NODE_H
23
- #define PLIST_NODE_H
24
-
25
- #include <plist/plist.h>
26
- #include <cstddef>
27
-
28
- namespace PList
29
- {
30
-
31
- class Node
32
- {
33
- public :
34
- virtual ~Node();
35
-
36
- virtual Node* Clone() const = 0;
37
-
38
- Node * GetParent() const;
39
- plist_type GetType() const;
40
- plist_t GetPlist() const;
41
-
42
- static Node* FromPlist(plist_t node, Node* parent = NULL);
43
-
44
- protected:
45
- Node(Node* parent = NULL);
46
- Node(plist_t node, Node* parent = NULL);
47
- Node(plist_type type, Node* parent = NULL);
48
- plist_t _node;
49
-
50
- private:
51
- Node* _parent;
52
- friend class Structure;
53
- };
54
-
55
- };
56
-
57
- #endif // PLIST_NODE_H
@@ -1,48 +0,0 @@
1
- /*
2
- * Real.h
3
- * Real node type for C++ binding
4
- *
5
- * Copyright (c) 2009 Jonathan Beck All Rights Reserved.
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef PLIST_REAL_H
23
- #define PLIST_REAL_H
24
-
25
- #include <plist/Node.h>
26
-
27
- namespace PList
28
- {
29
-
30
- class Real : public Node
31
- {
32
- public :
33
- Real(Node* parent = NULL);
34
- Real(plist_t node, Node* parent = NULL);
35
- Real(const Real& d);
36
- Real& operator=(const Real& d);
37
- Real(double d);
38
- virtual ~Real();
39
-
40
- Node* Clone() const;
41
-
42
- void SetValue(double d);
43
- double GetValue() const;
44
- };
45
-
46
- };
47
-
48
- #endif // PLIST_REAL_H
@@ -1,52 +0,0 @@
1
- /*
2
- * String.h
3
- * String node type for C++ binding
4
- *
5
- * Copyright (c) 2009 Jonathan Beck All Rights Reserved.
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef PLIST_STRING_H
23
- #define PLIST_STRING_H
24
-
25
- #include <plist/Node.h>
26
- #include <string>
27
-
28
- namespace PList
29
- {
30
-
31
- class String : public Node
32
- {
33
- public :
34
- String(Node* parent = NULL);
35
- String(plist_t node, Node* parent = NULL);
36
- String(const String& s);
37
- String& operator=(const String& s);
38
- String& operator=(const std::string& s);
39
- String& operator=(const char* s);
40
- String(const std::string& s);
41
- String(const char *s);
42
- virtual ~String();
43
-
44
- Node* Clone() const;
45
-
46
- void SetValue(const std::string& s);
47
- std::string GetValue() const;
48
- };
49
-
50
- };
51
-
52
- #endif // PLIST_STRING_H
@@ -1,62 +0,0 @@
1
- /*
2
- * Structure.h
3
- * Structure node type for C++ binding
4
- *
5
- * Copyright (c) 2009 Jonathan Beck All Rights Reserved.
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef PLIST_STRUCTURE_H
23
- #define PLIST_STRUCTURE_H
24
-
25
- #include <plist/Node.h>
26
- #include <string>
27
- #include <vector>
28
-
29
- namespace PList
30
- {
31
-
32
- class Structure : public Node
33
- {
34
- public :
35
- virtual ~Structure();
36
-
37
- uint32_t GetSize() const;
38
-
39
- std::string ToXml() const;
40
- std::vector<char> ToBin() const;
41
-
42
- virtual void Remove(Node* node) = 0;
43
-
44
- static Structure* FromXml(const std::string& xml);
45
- static Structure* FromBin(const std::vector<char>& bin);
46
- static Structure* FromBin(const char* bin, uint64_t size);
47
- static Structure* FromMemory(const std::vector<char>& buf, plist_format_t* format = NULL);
48
- static Structure* FromMemory(const char* buf, uint64_t size, plist_format_t* format = NULL);
49
-
50
- protected:
51
- Structure(Node* parent = NULL);
52
- Structure(plist_type type, Node* parent = NULL);
53
- void UpdateNodeParent(Node* node);
54
-
55
- private:
56
- Structure(Structure& s);
57
- Structure& operator=(const Structure& s);
58
- };
59
-
60
- };
61
-
62
- #endif // PLIST_STRUCTURE_H
@@ -1,48 +0,0 @@
1
- /*
2
- * Uid.h
3
- * Uid node type for C++ binding
4
- *
5
- * Copyright (c) 2012 Nikias Bassen, All Rights Reserved.
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef PLIST_UID_H
23
- #define PLIST_UID_H
24
-
25
- #include <plist/Node.h>
26
-
27
- namespace PList
28
- {
29
-
30
- class Uid : public Node
31
- {
32
- public :
33
- Uid(Node* parent = NULL);
34
- Uid(plist_t node, Node* parent = NULL);
35
- Uid(const Uid& i);
36
- Uid& operator=(const Uid& i);
37
- Uid(uint64_t i);
38
- virtual ~Uid();
39
-
40
- Node* Clone() const;
41
-
42
- void SetValue(uint64_t i);
43
- uint64_t GetValue() const;
44
- };
45
-
46
- };
47
-
48
- #endif // PLIST_UID_H
@@ -1,39 +0,0 @@
1
- /*
2
- * plist++.h
3
- * Main include of libplist C++ binding
4
- *
5
- * Copyright (c) 2009 Jonathan Beck All Rights Reserved.
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- */
21
-
22
- #ifndef LIBPLISTXX_H
23
- #define LIBPLISTXX_H
24
-
25
- #include "plist.h"
26
- #include "Array.h"
27
- #include "Boolean.h"
28
- #include "Data.h"
29
- #include "Date.h"
30
- #include "Dictionary.h"
31
- #include "Integer.h"
32
- #include "Node.h"
33
- #include "Real.h"
34
- #include "Key.h"
35
- #include "Uid.h"
36
- #include "String.h"
37
- #include "Structure.h"
38
-
39
- #endif