YourDefrag  SVN
Defines | Functions
cmd/src/YDWorkThread.cpp File Reference

YDWorkThread source file. More...

#include <iostream>
#include <QDateTime>
#include "YDWorkThread.h"

Defines

#define UNUSED(expr)   do { (void)(expr); } while (0)

Functions

void __cdecl YDShowStatus (struct DefragDataStruct *data)
 Defragmentation show status callback.
void __cdecl YDShowMove (struct ItemStruct *item, ULONG64 clusters, ULONG64 fromLcn, ULONG64 toLcn, ULONG64 fromVcn)
 Defragmentation show move callback.
void __cdecl YDShowAnalyze (struct DefragDataStruct *data, struct ItemStruct *item)
 Analyze show status callback.
void __cdecl YDShowDebug (int level, struct ItemStruct *item, WCHAR *message,...)
 Defragmentation debugging output callback.
void __cdecl YDDrawCluster (struct DefragDataStruct *data, ULONG64 clusterStart, ULONG64 clusterEnd, int color)
 Defragmentation progress visualization callback.
void __cdecl YDClearScreen (WCHAR *format,...)
 Defragmentation progress visualization callback.

Detailed Description

YDWorkThread source file.

Author:
Andriy Golovnya <andrew_golovnia@ukr.net> http://ag.embedded.org.ru/
URL:
http://yourdefrag.sf.net/
URL:
http://sf.net/projects/yourdefrag/
License:
GPLv2 http://www.gnu.org/licenses/gpl-2.0.html

Define Documentation

#define UNUSED (   expr)    do { (void)(expr); } while (0)

Function Documentation

void __cdecl YDClearScreen ( WCHAR *  format,
  ... 
)

Defragmentation progress visualization callback.

This function is called by jkDefrag.dll code when it's required to clear a screen duging defragmentation.

Parameters:
[in]formatText message.
void __cdecl YDDrawCluster ( struct DefragDataStruct data,
ULONG64  clusterStart,
ULONG64  clusterEnd,
int  color 
)

Defragmentation progress visualization callback.

This function is called by jkDefrag.dll code when it's required to show colored disk mask during defragmentation.

Parameters:
[in]dataData representing current state of defragmenter.
[in]clusterStartBeginning of cluster.
[in]clusterEndEnd of cluster.
[in]colorColor the cluster should be drawn.
void __cdecl YDShowAnalyze ( struct DefragDataStruct data,
struct ItemStruct item 
)

Analyze show status callback.

This function is called by jkDefrag.dll code when it's required to show a state if analyze poccess.

Parameters:
[in]dataData representing current state of defragmenter.
[in]itemCurrent data item being processed.
void __cdecl YDShowDebug ( int  level,
struct ItemStruct item,
WCHAR *  message,
  ... 
)

Defragmentation debugging output callback.

This function is called by jkDefrag.dll code when it's required to show debugging output during defragmentation.

Parameters:
[in]levelLogging level.
[in]itemCurrent data item being processed.
[in]messageText message.
void __cdecl YDShowMove ( struct ItemStruct item,
ULONG64  clusters,
ULONG64  fromLcn,
ULONG64  toLcn,
ULONG64  fromVcn 
)

Defragmentation show move callback.

This function is called by jkDefrag.dll code when it's required to show a data move process during defragmentation.

Parameters:
[in]itemCurrent data item being moved.
[in]clustersSize of data fragment in clusters.
[in]fromLcnInitial position of data fragment.
[in]toLcnResulting position of data fragment.
[in]fromVcnFile offset.
void __cdecl YDShowStatus ( struct DefragDataStruct data)

Defragmentation show status callback.

This function is called by jkDefrag.dll code when it's required to show a change of defragmenter state.

Parameters:
[in]dataData representing current state of defragmenter.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines