WOW !! MUCH LOVE ! SO WORLD PEACE !
Fond bitcoin pour l'amélioration du site: 1memzGeKS7CB3ECNkzSn2qHwxU6NZoJ8o
  Dogecoin (tips/pourboires): DCLoo9Dd4qECqpMLurdgGnaoqbftj16Nvp


Home | Publier un mémoire | Une page au hasard

 > 

Implantation d'un système de gestion des utilisateurs et monitoring des taches dans un réseau d'entreprise

( Télécharger le fichier original )
par Steve DILU NLEMVO
Université de Kinshasa - Licence en science Informatique option Génie Informatique 2014
  

précédent sommaire suivant

Bitcoin is a swarm of cyber hornets serving the goddess of wisdom, feeding on the fire of truth, exponentially growing ever smarter, faster, and stronger behind a wall of encrypted energy

1.20 5.3. Présentation et fonctionnement de l'application

L'application est subdivisée en deux parties : l'une pour l'administrateur et l'autre pour les autres postes à surveiller. Seule la partie administrateur possède une interface graphique. Ceci lui permettant de réaliser les opérations qu'il souhaite.

La partie du client ou celle qui se trouve sur tous les autres postes à surveiller n'a pas d'interface graphique. Elle est destinée à communiquer avec le poste administrateur pour fournir à ce dernier les éléments nécessaire ou recevoir une commande spécifique à exécuter sur lui-même.

L'interface de l'application coté administrateur se présente comme suit :

- Un menu principal renseigne sur toutes les fonctionnalités que l'application comporte

251657216

Figure 4.12. Capture du formulaire de démarrage (Partie administrateur)

- Le menu «tache» comporte la fonctionnalité qui permet voir les applications en cours de toutes les machines sur le réseau...

Figure 4.13. Capture du formulaire : Liste des taches (Partie administrateur)

- Le menu « commande » contient une fonctionnalité permettant a l'administrateur de commander, exécuter une opération sur un autre poste

Figure 4.14. Capture du formulaire : Lancer commande (Partie administrateur)

1.21 5.4. Code source

Le code source présenté est celui de l'interface de la classe « Connexion »

1. #ifndefCONNECTION_H

2. #defineCONNECTION_H

3. #include<QHostAddress>

4. #include<QString>

5. #include<QTcpSocket>

6. #include<QTime>

7. #include<QTimer>

8. staticconstintMaxBufferSize=1024000;

9. classConnection:publicQTcpSocket

10. {

11. Q_OBJECT

12. public:

13. enumConnectionState{

14. WaitingForGreeting,

15. ReadingGreeting,

16. ReadyForUse

17. };

18. enumDataType{

19. PlainText,

20. Ping,

21. Pong,

22. Greeting,

23. Undefined

24. };

25. Connection(QObject*parent=0);

26. QStringname()const;

27. voidsetGreetingMessage(constQString&message);

28. boolsendMessage(constQString&message);

29. signals:

30. voidreadyForUse();

31. voidnewMessage(constQString&from,constQString&message);

32. protected:

33. voidtimerEvent(QTimerEvent*timerEvent);

34. privateslots:

35. voidprocessReadyRead();

36. voidsendPing();

37. voidsendGreetingMessage();

38. private:

39. intreadDataIntoBuffer(intmaxSize=MaxBufferSize);

40. intdataLengthForCurrentDataType();

41. boolreadProtocolHeader();

42. boolhasEnoughData();

43. voidprocessData();

44. QStringgreetingMessage;

45. QStringusername;

46. QTimerpingTimer;

47. QTimepongTime;

48. QByteArraybuffer;

49. ConnectionStatestate;

50. DataTypecurrentDataType;

51. intnumBytesForCurrentDataType;

52. inttransferTimerId;

53. boolisGreetingMessageSent;

54. };

55. #endif

précédent sommaire suivant






Bitcoin is a swarm of cyber hornets serving the goddess of wisdom, feeding on the fire of truth, exponentially growing ever smarter, faster, and stronger behind a wall of encrypted energy








"I don't believe we shall ever have a good money again before we take the thing out of the hand of governments. We can't take it violently, out of the hands of governments, all we can do is by some sly roundabout way introduce something that they can't stop ..."   Friedrich Hayek (1899-1992) en 1984