| Entangle Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | Signals | ||||
struct EntangleSession; struct EntangleSessionClass; EntangleSession * entangle_session_new (const char *directory,const char *filenamePattern); const char * entangle_session_directory (EntangleSession *session); const char * entangle_session_filename_pattern (EntangleSession *session); char * entangle_session_next_filename (EntangleSession *session,EntangleCameraFile *file); gboolean entangle_session_load (EntangleSession *session); void entangle_session_add (EntangleSession *session,EntangleImage *image); void entangle_session_remove (EntangleSession *session,EntangleImage *image); int entangle_session_image_count (EntangleSession *session); EntangleImage * entangle_session_image_get (EntangleSession *session,int idx);
"directory" gchar* : Read / Write / Construct Only "filename-pattern" gchar* : Read / Write / Construct Only
struct EntangleSessionClass {
GObjectClass parent_class;
void (*session_image_added)(EntangleSession *session, EntangleImage *image);
void (*session_image_removed)(EntangleSession *session, EntangleImage *image);
};
EntangleSession * entangle_session_new (const char *directory,const char *filenamePattern);
Create a new sesssion tracking images present in
directory. The filenamePattern is used to generate
filenames for newly created images
|
the directory associated witht session |
|
the filename generator pattern |
Returns : |
the new session. [transfer full] |
const char * entangle_session_directory (EntangleSession *session);
Get the directory associated with the session
|
the session instance. [transfer none] |
Returns : |
the session directory. [transfer none] |
const char * entangle_session_filename_pattern (EntangleSession *session);
Get the filename generator pattern
|
the session instance. [transfer none] |
Returns : |
the filename pattern. [transfer none] |
char * entangle_session_next_filename (EntangleSession *session,EntangleCameraFile *file);
Generate a new unique filename for file, taking into
account its file extension and any previously generated
filename.
|
the session instance. [transfer none] |
|
the file to obtain a filename for. [transfer none] |
Returns : |
the new filename. [transfer full] |
gboolean entangle_session_load (EntangleSession *session);
Load all the files present in the directory associated with the session
|
the session instance. [transfer none] |
Returns : |
TRUE if the session was loaded |
void entangle_session_add (EntangleSession *session,EntangleImage *image);
Add image to the session
|
the session instance. [transfer none] |
|
the image to add to the session. [transfer none] |
void entangle_session_remove (EntangleSession *session,EntangleImage *image);
Remove image from the session
|
the session instance. [transfer none] |
|
the image to remove from the session. [transfer none] |
int entangle_session_image_count (EntangleSession *session);
Get the total number of images in the session
|
the session instance. [transfer none] |
Returns : |
the image count |
EntangleImage * entangle_session_image_get (EntangleSession *session,int idx);
Get the image located at idx in the array
|
the session instance. [transfer none] |
|
index of the image to fetch |
Returns : |
the image. [transfer none] |
"directory" property"directory" gchar* : Read / Write / Construct Only
Full path to session file.
Default value: NULL
"filename-pattern" property"filename-pattern" gchar* : Read / Write / Construct Only
Pattern for creating new filenames.
Default value: NULL
"session-image-added" signalvoid user_function (EntangleSession *entanglesession,
EntangleImage *arg1,
gpointer user_data) : Run First
"session-image-removed" signalvoid user_function (EntangleSession *entanglesession,
EntangleImage *arg1,
gpointer user_data) : Run First