File: buffy.i

package info (click to toggle)
libbuffy-bindings 0.11%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,420 kB
  • ctags: 141
  • sloc: sh: 10,221; ruby: 168; python: 162; perl: 131; makefile: 119
file content (37 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (3)
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
// pair.i - SWIG interface
%module Buffy

%include std_string.i
%include std_vector.i

//%feature("director");

%exception {
	try { $action }
	catch (...) { SWIG_fail; }
}

%{
#include <buffy/mailfolder.h>
#include <buffy/config/config.h>
%}

%ignore buffy::SmartPointer;
%ignore buffy::SmartPointerItem;

// Parse the original header file
%include <buffy/utils/smartpointer.h>
%include <buffy/utils/consumer.h>
%include <buffy/config/config.h>

// Instantiate the base class needed for MailFolder, but dont wrap it
%template() buffy::SmartPointer<buffy::MailFolderImpl>;
%template(MailFolderVector) std::vector<buffy::MailFolder>;
%template(StringVector) std::vector<std::string>;

%ignore MailFolderImpl;
%include <buffy/mailfolder.h>

// TODO:
// Rename the static method to be called as MailFolder.enumerateFolders
// (or even as Buffy.enumerateFolders?)