コード例 #1
0
ファイル: sdk_test.cpp プロジェクト: rezetta/sdk
/**
 * @brief TEST_F SdkTestResumeSession
 *
 * It creates a local cache, logs out of the current session and tries to resume it later.
 */
TEST_F(SdkTest, SdkTestResumeSession)
{
    char *session = dumpSession();
    ASSERT_NO_FATAL_FAILURE( locallogout() );

    ASSERT_NO_FATAL_FAILURE( resumeSession(session) );

    delete session;
}
コード例 #2
0
ファイル: SessionListWidget.cpp プロジェクト: eduffy/hpcvmmon
void SessionListWidget::resumeSessionSlot()
{
   QAction *action = qobject_cast<QAction *>(sender());
   JobDefinition *job = action->data().value<JobDefinition *>();
   emit resumeSession(job);
}