CepInstance is the external process (ExApp and Script Module) that communicates with Packet Tracer through the IPC.
More...
CepInstance is the external process (ExApp and Script Module) that communicates with Packet Tracer through the IPC.
◆ addExclusivePublisher()
bool CepInstance::addExclusivePublisher |
( |
string |
| ) |
|
Returns true if the exclusive publisher with the specified certificate was added successfully, otherwise false.
- Parameters
-
pem,the | PEM base64-encoded DER certificate string. |
- Returns
- bool, true if the exclusive publisher with the specified certificate was added successfully, otherwise false.
◆ clearExclusivePublishers()
void CepInstance::clearExclusivePublishers |
( |
| ) |
|
Clears all exclusive publishers.
◆ getCep()
Cep CepInstance::getCep |
( |
| ) |
|
◆ getCommandLineArg()
QString CepInstance::getCommandLineArg |
( |
| ) |
|
Returns the command line argument for this external process (ExApp or Script Module) when launching PT.
- Returns
- QString, the command line argument fort his external process
◆ getExclusivePublisherAt()
string CepInstance::getExclusivePublisherAt |
( |
int |
| ) |
|
Returns the exclusive publisher at the specified index.
- Parameters
-
index,the | index of the exclusive publisher. |
- Returns
- string, the exclusive publisher at the specified index.
◆ getExclusivePublisherCount()
int CepInstance::getExclusivePublisherCount |
( |
| ) |
|
Returns the number of exclusive publishers.
- Returns
- int, the number of exclusive publishers.
◆ getInstanceId()
uuid CepInstance::getInstanceId |
( |
| ) |
|
Returns the UUID of this external process.
- Returns
- uuid, the UUID of this external process.
◆ hasExclusivePublisher()
bool CepInstance::hasExclusivePublisher |
( |
string |
| ) |
|
Returns true if the specified certificate is an exclusive publisher, otherwise false.
- Parameters
-
pem,the | PEM base64-encoded DER certificate string. |
- Returns
- bool, Returns true if the specified certificate is an exclusive publisher, otherwise false.
◆ messageReceived()
void CepInstance::messageReceived |
( |
string |
, |
|
|
uuid |
, |
|
|
QString |
|
|
) |
| |
This event is emitted when this external process receives a message from a local external process.
- srcCepId, the name of the external process source.
- srcCepInstanceId, the UUID of the external process source.
- message, the message from the external process source.
IPC event.
◆ registeredFileOpened()
void CepInstance::registeredFileOpened |
( |
QString |
| ) |
|
This event is emitted when PT GUI or OS opens a file that is registered to this external process.
- filePath, the path of the file opened.
IPC event.
◆ remoteMessageReceived()
void CepInstance::remoteMessageReceived |
( |
string |
, |
|
|
uuid |
, |
|
|
QString |
|
|
) |
| |
This event is emitted when this external process receives a message from a remote external process.
- srcCepId, the name of the external process source.
- srcCepInstanceId, the UUID of the external process source.
- message, the message from the external process source.
IPC event.
◆ removeExclusivePublisher()
bool CepInstance::removeExclusivePublisher |
( |
string |
| ) |
|
Returns true if the exclusive publisher with the specified certificate was removed successfully, otherwise false.
- Parameters
-
pem,the | PEM base64-encoded DER certificate string. |
- Returns
- bool, true if the exclusive publisher with the specified certificate was removed successfully, otherwise false.
◆ removeExclusivePublisherAt()
void CepInstance::removeExclusivePublisherAt |
( |
int |
| ) |
|
Removes the exclusive publisher at the specified index.
- Parameters
-
index,the | index of the exclusive publisher. |
The documentation for this class was generated from the following file: