Here are the main cURL functions used in RingLibCurl:
- curl_easy_setopt - Sets options for the cURL easy handle. This is used to set options like the URL, headers, write callback etc.
- curl_easy_perform - Performs a cURL session. This initiates the transfer based on the options previously set.
- curl_easy_cleanup - Cleans up and free resources used by a cURL easy handle.
Some commonly used options include:
- CURLOPT_URL - Set the URL to transfer.
- CURLOPT_WRITEFUNCTION - Set a callback to write received data.
- CURLOPT_WRITED
7. Ring Documentation, Release 1.6
bool dragEnabled(void)
int echoMode(void)
void end(bool mark)
void getTextMargins(int *left, int *top, int *right, int *bottom)
bool hasAcceptableInput(void)
bool hasFrame(void)
bool hasSelectedText(void)
void home(bool mark)
QString inputMask(void)
void insert(QString)
bool isModified(void)
bool isReadOnly(void)
bool isRedoAvailable(void)
bool isUndoAvailable(void)
int maxLength(void)
QString placeholderText(void)
QString selectedText(void)
int selectionStart(void)
void setAlignment(int flag)
void setCompleter(QCompleter *c)
void setCursorMoveStyle(int style)
void setCursorPosition(int)
void setDragEnabled(bool b)
void setEchoMode(int)
void setFrame(bool)
void setInputMask(QString)
void setMaxLength(int)
void setModified(bool)
void setPlaceholderText(QString)
void setReadOnly(bool)
void setSelection(int start, int length)
void setTextMargins(int left, int top, int right, int bottom)
void setValidator(QValidator *v)
QString text(void)
QMargins textMargins(void)
QValidator *validator(void)
void clear(void)
void copy(void)
void cut(void)
void paste(void)
void redo(void)
void selectAll(void)
void setText(QString)
void undo(void)
void setTextChangedEvent(const char *)
void setcursorPositionChangedEvent(const char *)
void seteditingFinishedEvent(const char *)
void setreturnPressedEvent(const char *)
void setselectionChangedEvent(const char *)
void settextEditedEvent(const char *)
Note: Most of the content of the previous conļ¬guration ļ¬le is removed from this documentation, for a complete
version see the Ring source code distribution.
73.19. Conļ¬guration ļ¬le for the Qt Framework 829
8. Ring Documentation, Release 1.6
73.20 Conļ¬guration Files Examples
You can learn from the next examples
ā¢ RingAllegro : https://github.com/ring-lang/ring/blob/master/extensions/ringallegro/allegro.cf
ā¢ RingQt : https://github.com/ring-lang/ring/blob/master/extensions/ringqt/qt.cf
ā¢ RingLibSDL : https://github.com/ring-lang/ring/blob/master/extensions/ringsdl/libsdl.cf
After modiļ¬ng the conļ¬guration ļ¬le, You will need to generate the code, You can learn from the next examples
ā¢ RingAllegro : https://github.com/ring-lang/ring/blob/master/extensions/ringallegro/gencode.bat
ā¢ RingQt : https://github.com/ring-lang/ring/blob/master/extensions/ringqt/gencode.bat
ā¢ RingLibSDL : https://github.com/ring-lang/ring/blob/master/extensions/ringsdl/gencode.bat
After generating the code, You will need to build the library, You can learn from the next examples
ā¢ RingAllegro : https://github.com/ring-lang/ring/blob/master/extensions/ringallegro/buildvc.bat
ā¢ RingQt : https://github.com/ring-lang/ring/blob/master/extensions/ringqt/buildmingw32.bat
ā¢ RingLibSDL : https://github.com/ring-lang/ring/blob/master/extensions/ringsdl/buildvc.bat
73.20. Conļ¬guration Files Examples 830